Raised when an error occurs (usually a division by zero)
Module OgamlMath.Quaternion
Operations on immutable quaternionsThis module defines the quaternion type and various operations on it
Type of quaternions
Record fields
Zero quaternion
Unit (real) quaternion
Returns a real number as a quaternion
Adds two quaternions
Multiplies two quaternions
Multiplies a quaternion by a scalar
sub q1 q2
returns the quaternion q1 - q2
Returns the quaternion representing a rotation given by an axis and an angle.
See : OgamlMath.Vector3f
See : OgamlMath.Vector3f
Returns the conjugate of a quaternion
Returns the inverse of a quaternion. Raises Quaternion_exception if the quaternion is zero
Returns the squared norm of a quaternion
Returns the norm of a quaternion
Normalizes a quaternion. Raises Quaternion_exception if the quaternion is zero