If I understand your question correctly, you are asking about the
line:

        angle.get(a);

        'angle' is an instance of AxisAngle4d.  So the 'get' method stores
the fields of angle in the array a st. a[0-3] =
(axisX,axisY,axisZ,theta) where a is a is an array of doubles.  I hope
this answered your question.

        DereK

On Tue, 30 May 2000, Pondrom, Pierre L wrote:

> 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".
>

===========================================================================
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".

Reply via email to