From: "St�le Pedersen" <[EMAIL PROTECTED]> Sent: Friday, March 01, 2002 9:53 AM
> hi, after using quaternions (javax.vecmath.Quat4f) i noticed that the > constructor Quat4f(float x, float y, float z, float w) not just set > these parameters as values, it also normalize the object. > It doesnt say anything about this in the javadoc. > Maybe this is a feature, i dont know, i hope this is a bug, if not, > please let people know that the object is normalized. > i attach a small program to illustrate the problem. vecmath constructors normalize quaternions - one of the little details left endearingly out of the docs. I haven't experimented with the returns of other quat methods, but I suspect some others will enforce the normalization too. If you want to use quaternions to do things other than spherical rotations, you have to roll your own. You can try to override the normalization with Tuple sets, but that's just asking for more trouble IMHO. My winter project is building a dual number package on top of vecmath that includes general quaternion and dual quaternion math, but it's far from even an alpha. And there are only three more weeks of winter. hth, Fred Klingener Brock Engineering =========================================================================== 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".
