I'm curious about what routine sets the a array? Is it Matrix3d or
AxisAngle4d?
> ----------
> From: Derek Augustus Ruths[SMTP:[EMAIL PROTECTED]]
> Reply To: Discussion list for Java 3D API
> Sent: Tuesday, May 30, 2000 2:50 PM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] Transform3D NaN results
>
> I have discovered that the following code produces non numeric
> results:
>
> double thetaX,thetaY;
> Transform3D t1,t2;
> double[] a=new double[4];
> Matrix3d mat=new Matrix3d();
> AxisAngle4d angle=new AxisAngle4d();
>
> ...
>
> t1.rotX(thetaX);
> t2.rotY(thetaY);
> t1.mul(t2);
> t1.normalize();
> t1.get(mat);
> angle.set(mat);
> angle.get(a);
>
> Namely, when thetaX or thetaY = 0, the axis values of angle,
> stored in a, are reported as NaN. It this a problem people are familiar
> with? My method seems straight-forward such that I'm not doing anything
> technically wrong. If anyone has any thoughts on this, they would be much
> appreciated. Thanks.
>
> DereK
>
> ==========================================================================
> =
> 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".
>
===========================================================================
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".