#### Archived

This topic is now archived and is closed to further replies.

# Coordinate system transformations

This topic is 5562 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hmm, I''m having trouble transforming points from the regular coordinate system to an arbitary one. It''s the rotations that are the problem, I''ll try and explain by an 2D example. Regular coordinate system: Vectors: x(1 0) y(0 1) Diagram: y | |___ x New coordinate system (90 degree rotation): x(0 -1) y(1 0) ___ y | | x Let''s say a point in the original system is (2, 1), the point transformed to the new system should be at (1, -2) Looking at my maths books I figure you would just do the matrix multiplication: (0 -1)(2) (1 0)(1) = (-2, 1) ...obviously the wrong answer Where am I going wrong??

##### Share on other sites
You are doing the matrix multiplication wrong.
|0 -1||2| = |-1||1  0||1|   | 2|

##### Share on other sites
The point at (1, 0) becomes ( 0, 1)
The point at (0, 1) becomes ( -1, 0 )
so (2, 1) = 2 (1, 0) + (0, 1) becomes 2(0, 1) + (-1, 0) = (-1, 2) not (1, -2)

Besides, this is perfectly equivalent to the matrix multiplication...

ToohrVyk

##### Share on other sites
Making it more clear :

|1|         |0|     |0|         |-1||0| becomes |1] and |1| becomes | 0|To get the matrix, one simply sticks toegether the images of the base :|0 -1||1  0|To multiply a vector by this matrix is to decompose the vector into its coordinates in the base, then calculate it's image along each axis, and finally sum it up toegether... so|0 -1|   |2|       |0|       |-1|   |-1||1  0| * |1| = 2 * |1| + 1 * | 0| = | 2|

ToohrVyk

Always be wary of typos. Even one is enough to turn your pubic hair public.

[edited by - ToohrVyk on July 3, 2003 8:19:18 AM]

[edited by - ToohrVyk on July 3, 2003 8:19:48 AM]

1. 1
2. 2
3. 3
Rutin
18
4. 4
JoeJ
14
5. 5

• 14
• 9
• 23
• 9
• 32
• ### Forum Statistics

• Total Topics
632624
• Total Posts
3007505
• ### Who's Online (See full list)

There are no registered users currently online

×