Rotation Data (Nodes)

  • #1
laminatedevildoll
210
0
I had to rotate four nodes x,y,z around the z-axis, then the x-axis using rotation equations and an angle. The whole point of the program is to change the input data into a new coordinate system. I think that my data looks right, but I need a second opinion.

Input

x | y | z

1.| 0.00 | 0.00 | -2.00
2.| -10.00 | 0.00 | -2.00
3.| 0.00 | 5.00 | -2.00
4.| -10.00 | 5.00 | -2.00

Output

-10.0000 -0.742781 -1.85695
0.00000 -0.742781 -1.85695
-10.000 4.64238 -1.85695
0.00000 4.64238 -1.85695
 
Last edited:

Answers and Replies

  • #2
EnumaElish
Science Advisor
Homework Helper
2,327
124
I am not an expert on this, but as I try to visualize:

On the room floor, the X axis runs W-E, Y axis runs S-N. Z axis runs floor-ceiling.

Your 1st node is located on the Z axis 2 inches below the origin. You first rotate it around the Z axis, and it stays where it is. You then rotate it around the X axis, shouldn't its new coordinates be (0,0,+2)?
 

Suggested for: Rotation Data (Nodes)

  • Last Post
Replies
0
Views
281
Replies
7
Views
231
  • Last Post
Replies
4
Views
456
Replies
4
Views
579
  • Last Post
Replies
1
Views
467
Replies
76
Views
2K
Replies
1
Views
445
  • Last Post
Replies
6
Views
431
Replies
3
Views
387
Top