Cyrille,
Someting like this should work:
public double getAngle(Transform3D t) {
Quat4d q = new Quat4d();
t.get(q);
// and then, the easy (if not very cheap) way of getting the angle is
AxisAngle4d a = new AxisAngle4d();
a.set(q);
return a.angle;
}
Anyone have the right way?
Fred Klingener
Brock Engineering
<<
----- Original Message -----
From: Cyrille Breihof
To: [EMAIL PROTECTED]
Sent: Thursday, December 07, 2000 2:33 AM
Subject: [JAVA3D] Retrieving angle from Transform3D Object
Hi,
is there a possibility to retrieve an angle from a Transform3D Object?
Example:
Transform3D rotationY1=3D new Transform3D();
Transform3D rotationY2=3D new Transform3D();
rotationY1.rotY(2*Math.PI* 15 /360); // 15 degrees
rotationY2.rotY(2*Math.PI* 25 /360); // 25 degrees
rotationY1.mul(rotationY1, rotationY2); // result 40 degrees
double rotationresult=3D ---> getYRotation(rotationY1); <---
What must I do to retrieve this Information,
or more efficiently to retrieve x,y,z angles?
Best regards,
Cyrille Breihof
>>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".