Rotate Nodes Around x & z-Axis: Second Opinion Needed

Click For Summary
SUMMARY

The discussion focuses on rotating four nodes in a 3D coordinate system around the z-axis and then the x-axis using specific rotation equations. The input data consists of coordinates for each node, and the output reflects the transformed coordinates after the rotations. The user seeks validation of their results, particularly questioning the expected coordinates after the rotations, specifically whether the first node should be at (0,0,+2) after the transformations.

PREREQUISITES
  • Understanding of 3D coordinate systems
  • Familiarity with rotation matrices in linear algebra
  • Knowledge of trigonometric functions for angle calculations
  • Experience with programming in a language that supports mathematical computations
NEXT STEPS
  • Study 3D rotation matrices for both z-axis and x-axis rotations
  • Learn how to implement rotation transformations in programming languages like Python or C++
  • Research the implications of coordinate transformations in computer graphics
  • Explore visualization tools for 3D transformations to better understand node positioning
USEFUL FOR

This discussion is beneficial for computer graphics developers, game developers, and anyone involved in 3D modeling or simulations requiring coordinate transformations.

laminatedevildoll
Messages
211
Reaction score
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:
Physics news on Phys.org
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)?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K