From: Braden M. <br...@en...> - 2007-02-26 23:10:30
|
Nicholas F. Polys wrote: > Can anyone tell me where I should be looking for 3d math and matrix utilities? > > for example, is there a method for converting Heading Pitch Roll angles to SFRotation? > > NPS had a java class to do this... > just wondering if we had a C++ class that could also do conversions (not just quaternion slerping) [This does not appear to be related to the previous message in this thread; please start new threads as appropriate.] openvrml::rotation and openvrml::quatf (see basetypes.h) provide conversions between the conventional VRML axis+angle format and quaternions. There are also constructor functions to create an openvrml::mat4f from a rotation or a quatf and functions to get a rotation from a mat4f. However, there is no code in OpenVRML that deals with Euler angles. Braden |