hello,
i am have a little problem
.how do i write a programm(Geometric Transformation) of linear Transformation in Translation,scalling and rotation
7 2540
That will depend a lot on some design choices you are either going to make or have already made.
So let me ask you this: what do you have so far?
That will depend a lot on some design choices you are either going to make or have already made.
So let me ask you this: what do you have so far?
i have gotting the linear transformation using translation,rotation and tha scaling transformation,but my problem now is how to
get the general matrix and the concatenate transformation.please can you give the format to parform these.
i have gotting the linear transformation using translation,rotation and tha scaling transformation,but my problem now is how to
get the general matrix and the concatenate transformation.please can you give the format to parform these.
Okay, well, those are different than what you said in the thread title and your first post, so do you have an algorithm for accomplishing those yet? (Have you written down the steps you would take if you didn't have a computer and were doing this by hand?)
You also haven't specified a language yet - C or C++.
PS - Due to the changing subject, I will be changing the thread title, please let me know if you think it needs to be changed.
Okay, well, those are different than what you said in the thread title and your first post, so do you have an algorithm for accomplishing those yet? (Have you written down the steps you would take if you didn't have a computer and were doing this by hand?)
You also haven't specified a language yet - C or C++.
PS - Due to the changing subject, I will be changing the thread title, please let me know if you think it needs to be changed.
a programm is aready be given i just to write the correct format in.
here is what i have do so far -
{
-
case TRANSLATION:
-
m[][] =transformation_value[0];
-
m[][] =transformation_value[0];
-
-
case ROTATION:
-
m[][] = -sin(degree_angle);
-
m[][] = cos (degree_angle);
-
-
case SCALING:
-
m[][] =transformation_value[0];
-
m[][] =transformation_value[1];
-
}
-
my problem now is the general transformation_vector whice is the multiplication of all the matrix.and the concatenate transformation.how do i perform/implement these.i am using C++.
a programm is aready be given i just to write the correct format in.
here is what i have do so far -
{
-
case TRANSLATION:
-
m[][] =transformation_value[0];
-
m[][] =transformation_value[0];
-
-
case ROTATION:
-
m[][] = -sin(degree_angle);
-
m[][] = cos (degree_angle);
-
-
case SCALING:
-
m[][] =transformation_value[0];
-
m[][] =transformation_value[1];
-
}
-
This is not valid code. Not only will the cases not work, but they are not set up properly, and each case goes into the next. Are you familiar with case/switch statements and their requirements?
my problem now is the general transformation_vector whice is the multiplication of all the matrix.and the concatenate transformation.how do i perform/implement these.i am using C++.
You need to create an algorithm - a set of steps that will solve these either on a computer, on paper, by hand, etc... but a set of steps that anyone can walk through to create a general "transformation_vector" and then create a general "concatenate transformation" for any question of this type.
This is not valid code. Not only will the cases not work, but they are not set up properly, and each case goes into the next. Are you familiar with case/switch statements and their requirements?
You need to create an algorithm - a set of steps that will solve these either on a computer, on paper, by hand, etc... but a set of steps that anyone can walk through to create a general "transformation_vector" and then create a general "concatenate transformation" for any question of this type.
- how do i create the this general transformation
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.
Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.
Then when you are ready post a new question in this thread.
MODERATOR
Sign in to post your reply or Sign up for a free account.
Similar topics
by: herbert |
last post by:
The following code, copied from MSDN article "Using Matrix Transformation in
System.Drawing" creates an OutOfMemoryException when creating the Matrix.
The downloaded MSDN source code works fine....
|
by: John |
last post by:
When using the C# for the Matrix Transformation for a 100x200 panel:
1. To Reverse Y axis, I can:
Matrix m = new Matrix(new Rectangle(0,0,100,200), new Point {
new Point(0,100), new...
|
by: Ing. Carlos Villaseñor M. |
last post by:
Hi everybody!
I have developed in C# and got in a news group a math class that make matrix
operations, eigenvals, eigenvecs, stat functions and much more, but now I
trying to develop software in...
|
by: parth |
last post by:
Hi
I want to achieve the following transformation of data using a stored
procedure.
Source
col1 col2(varchar)
-------------------------
|
by: Matt |
last post by:
Hello. I'm struggling to work out what bit of matrix manipulation the
following piece of code is doing to the 3x3 matrix given:
#include <stdio.h>
int main()
{
int check_mat = { { 1 , 2...
|
by: Thomas Bauer |
last post by:
Hello,
how can I make the transformation matrix?
Zero point
Left top
Left bottom
Right top
Right bottom
|
by: Thomas Bauer |
last post by:
Hello,
I search a example like that.
(1,0,0,1,4,5 ) -- moving
(1,0,0,1,0,0 ) -- normal matrix
(-1,0,0,1,0,0 ) -- Mirror Y-Axis
(0,-1,0,1,0,0 ) -- Mirror X-Axis
I caluculate all in mm.
|
by: crazygrey |
last post by:
Hello, I'm a newbie to C++ so excuse me if my question was trivial but
it is important to me.
I'm implementing a simple code to find the forward kinematics of a
robot:
#include "stdafx.h"...
|
by: Nezhate |
last post by:
Hi all,
Is there any way to print a matrix's elements using a simple printf ?
what I want as result is for example:
if mat ={0,1,2,3}
result must be: "0123".
I tried this code:
...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |