shapes 3d and Quaternion.
in
Contributed Library Questions
•
28 days ago
Hello. I would like to use shapes 3d to rotate points in 3d space.
The result
I have got small problem when i use shapes 3d rot.
for example
my code is
- Rot r = new Rot(RotOrder.ZYX, 0, radians(90), radians(90));
- Rot r2 = new Rot(RotOrder.ZYX, radians(-90), radians(90), radians(0));
- println(r);
- println(r2);
The result
- Q[0.49999997 -0.49999997 -0.49999997 0.49999997]
- Q[0.49999997 -0.49999997 -0.49999997 0.49999997]
But when I use
- Rot r = new Rot(RotOrder.XYZ, 0, radians(90), radians(90));
- Rot r2 = new Rot(RotOrder.XYZ, radians(-90), radians(90), radians(0));
- Q[0.49999997 -0.49999997 -0.49999997 -0.49999997]
- Q[0.49999997 0.49999997 -0.49999997 0.49999997]
Can someone explain me why it works in this way?
1