473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

general matrix and the concatenate transformation

29
hello,
i am have a little problem

.how do i write a programm(Geometric Transformation) of linear Transformation in Translation,scalling and rotation
Mar 17 '08 #1
7 2540
sicarie
4,677 Expert Mod 4TB
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?
Mar 17 '08 #2
locy
29
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.
Mar 17 '08 #3
sicarie
4,677 Expert Mod 4TB
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.
Mar 17 '08 #4
locy
29
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
Expand|Select|Wrap|Line Numbers
  1. {
  2. case TRANSLATION:
  3. m[][] =transformation_value[0];
  4. m[][] =transformation_value[0];
  5.  
  6. case ROTATION:
  7. m[][] = -sin(degree_angle);
  8. m[][] = cos (degree_angle);  
  9.  
  10. case SCALING:
  11. m[][] =transformation_value[0];
  12. m[][] =transformation_value[1];
  13. }
  14.  
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++.
Mar 17 '08 #5
sicarie
4,677 Expert Mod 4TB
a programm is aready be given i just to write the correct format in.
here is what i have do so far
Expand|Select|Wrap|Line Numbers
  1. {
  2. case TRANSLATION:
  3. m[][] =transformation_value[0];
  4. m[][] =transformation_value[0];
  5.  
  6. case ROTATION:
  7. m[][] = -sin(degree_angle);
  8. m[][] = cos (degree_angle);  
  9.  
  10. case SCALING:
  11. m[][] =transformation_value[0];
  12. m[][] =transformation_value[1];
  13. }
  14.  
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.
Mar 17 '08 #6
locy
29
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.
Expand|Select|Wrap|Line Numbers
  1. how do i create the this general transformation
Mar 17 '08 #7
sicarie
4,677 Expert Mod 4TB
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
Mar 17 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
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....
1
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...
10
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...
12
by: parth | last post by:
Hi I want to achieve the following transformation of data using a stored procedure. Source col1 col2(varchar) -------------------------
8
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...
1
by: Thomas Bauer | last post by:
Hello, how can I make the transformation matrix? Zero point Left top Left bottom Right top Right bottom
14
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.
3
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"...
12
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: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.