The alpha is the percent of the q1 that is used, 1-alpha is the percent of
q2 that is used.

Dave Yazel

----- Original Message -----
From: Bob Dengle <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 21, 2002 2:12 PM
Subject: [JAVA3D] Averaging rotations


Hi
Ive been trying to rotate a shape based on the weighted average of 4 or 5
rotations. Is there a simple way in Java3D to average rotations? I looked at
the Quat4d's interpolate() method but im not sure what the parameters mean.


public final void interpolate(Quat4d q1,double alpha)

Performs a great circle interpolation between this quaternion and the
quaternion parameter and places the result into this quaternion.
Parameters:
q1 - the other quaternion
alpha - the alpha interpolation parameter

what is the alpha? does it go from 0 to 1? How does it influence the
interpolation? Will it average the rotations? Will i keep asking questions?
:-)

Thanks

Bob Dengle

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

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