It should be like that. The values you print have been normalized.
to see this, you can add x*x + y*y + z*z +w*w = 1.
liming
Mojtaba Hosseini wrote:
> Hello all,
> I'm having some problems using the Quat4f class. It seems that the
> values I put into Quat4f somehow get changed. To demonstrate this, I ran
> this code:
>
> rotations = new Quat4f(0.0f,0.0f,1.0f,0.2f);
> System.out.println("rotations read x: "+rotations[i].x);
> System.out.println("rotations read y: "+rotations[i].y);
> System.out.println("rotations read z: "+rotations[i].z);
> System.out.println("rotations read w: "+rotations[i].w);
>
> And the result is surprisingly:
> rotations read x: 0.0
> rotations read y: 0.0
> rotations read z: 0.9805807
> rotations read w: 0.19611613
>
> Am I missing something or this isn't supposed to happen?
> Mojtaba
>
> ===========================================================================
> 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".