473,566 Members | 2,784 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

general matrix and the concatenate transformation

29 New Member
hello,
i am have a little problem

.how do i write a programm(Geomet ric Transformation) of linear Transformation in Translation,sca lling and rotation
Mar 17 '08 #1
7 2550
sicarie
4,677 Recognized Expert Moderator Specialist
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 New Member
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,rot ation 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 Recognized Expert Moderator Specialist
i have gotting the linear transformation using translation,rot ation 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 New Member
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 Recognized Expert Moderator Specialist
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 "concatenat e transformation" for any question of this type.
Mar 17 '08 #6
locy
29 New Member
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 "concatenat e 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 Recognized Expert Moderator Specialist
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
1386
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. Any ideas please? Thanks a lot! Herbert Imports System.Drawing.Drawing2D
1
1646
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 Point(100,200), new Point(0,0)} ); 2. To Reverse X axis, I can: Matrix m = new Matrix(new Rectangle(0,0,100,200), new Point { new Point(100,0), new...
10
8806
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 Visual Basic.NET and wondering if does exist something like that for Basic.NET. I appreciate some help Thank you
12
16479
by: parth | last post by:
Hi I want to achieve the following transformation of data using a stored procedure. Source col1 col2(varchar) -------------------------
8
2507
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 , 3 } , { 4 , 5 , 6 } , { 7 , 8 ,
1
3844
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
9095
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
3870
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" #include<iostream> #include<iomanip> #include<fstream> #include"math.h"
12
3107
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: /***************************************************************/ #include <stdio.h>
0
7666
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7644
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2083
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.