I put this web site up and no one seems to take advantage of it.  It should answer your questions.

Feel free to copy the code.

http://www.sigda.org/Eric/java3d/index.htm

Follow the link under the heading:
"Retrieving Correct Rotation Components from Transform Matrix"






At 08:33 AM 12/07/2000 +0100, you wrote:
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

***********************************************************************
Eric Reiss - http://www.sigda.acm.org/Eric/
Email: [EMAIL PROTECTED]

SIGDA Internet Server Manager - http://www.sigda.acm.org/

Assistant Systems Manager - School of Engineering
University of Pittsburgh
***********************************************************************

Reply via email to