Uses of Class
edu.nps.moves.legacy.math.Quaternion2
Packages that use Quaternion2
-
Uses of Quaternion2 in edu.nps.moves.legacy.math
Methods in edu.nps.moves.legacy.math that return Quaternion2Modifier and TypeMethodDescriptionQuaternion2.add(Quaternion2 QUAT) Adds two quaternionsQuaternion2.invert()Finds the inverse (conjugate) of a quaternionQuaternion2.multiply(double NUM) Multiplies this quaternion with a scalarQuaternion2.multiply(Quaternion2 QUAT) Multiplies two quaternionsQuaternion2.rotate(Quaternion2 QUAT4) Rotates a vector by quaternionsQuaternion2.substract(Quaternion2 QUAT) Substracts two quaternionsQuaternion2.toAxisAngles()Calculates the axis angles of quaternion for drawing, results must be used in glRotatef() by using get() functionsQuaternion2.toBody(Quaternion2 QUAT) Converts to body coordinatesQuaternion2.toEulerAngles()Converts a quaternion into Euler angles Warning : This conversion is inherently ill-definedQuaternion2.toQuaternion2()Calculates the quaternion value of three rotations Current object is a 3D vector with rotation angles in quaternion formMethods in edu.nps.moves.legacy.math with parameters of type Quaternion2Modifier and TypeMethodDescriptionQuaternion2.add(Quaternion2 QUAT) Adds two quaternionsdoubleQuaternion2.dotProduct(Quaternion2 QUAT5) Finds the dot product of two quaternionsQuaternion2.multiply(Quaternion2 QUAT) Multiplies two quaternionsQuaternion2.rotate(Quaternion2 QUAT4) Rotates a vector by quaternionsQuaternion2.substract(Quaternion2 QUAT) Substracts two quaternionsQuaternion2.toBody(Quaternion2 QUAT) Converts to body coordinates