10-15-2009 09:40 PM
Running lv 8.5, am I misunderstanding how this vi works? I have entered into the vi the following values
x: 1
y: -1
theta: pi/2
and the result I'm getting is
x: -1
y: -1
It seems like it's rotating in the wrong direction!
Additionally see here:
http://zone.ni.com/reference/en-XX/help/371361F-01/gmath/2d_cartesian_coordinate_rotation/
Where the rotation matrix shown is not the same as shown in other sources, such as:
http://en.wikipedia.org/wiki/Rotation_matrix
http://mathworld.wolfram.com/RotationMatrix.html
I find it hard to believe that no one else has experienced this problem so what am I missing?!
Solved! Go to Solution.
10-15-2009 09:50 PM
10-15-2009 09:55 PM
10-15-2009 10:00 PM
It is working right.
The function rotates the coordinate system about the origin. It isn't rotating the point about the origin.
A pi/2 is a counter-clockwise rotation of the axes about the origin 90°. If the point is in the upper right quadrant, +x +y, rotating the axes 90°counter-clockwise will put the point at 1,1 into the lower right quadrant of the new coordinate system +x -y
In the wikipedia example, the points are being rotated in the existing coordinate system.
It is really all a matter of frame of reference.