Rotation Data (Nodes)

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:

EnumaElish

Science Advisor
Homework Helper
2,285
123
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)?
 

Related Threads for: Rotation Data (Nodes)

Replies
1
Views
1K
  • Posted
Replies
4
Views
3K
  • Posted
Replies
2
Views
2K
  • Posted
Replies
3
Views
1K
  • Posted
Replies
6
Views
2K
  • Posted
Replies
1
Views
2K
  • Posted
Replies
1
Views
1K
  • Posted
Replies
2
Views
597

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving

Hot Threads

Top