A quaternion.
The contents of the <GrapheneQuaternion>
structure are private and should never be accessed directly.
Adds two <GrapheneQuaternion> self and
b.
Passed: a <GrapheneQuaternion>.
Passed: a <GrapheneQuaternion>.
Passed, filled in, and returned: a
<GrapheneQuaternion>.
the result of the operation
Allocates a new <GrapheneQuaternion>.
The contents of the returned value are undefined.
Returned: a <GrapheneQuaternion>.
the newly allocated <GrapheneQuaternion>
Computes the dot product of two
<GrapheneQuaternion>.
Passed: a <GrapheneQuaternion>.
Passed: a <GrapheneQuaternion>.
Returned: a real number.
the value of the dot products
Checks whether the given quaternions are equal.
Passed: a <GrapheneQuaternion>.
Passed: a <GrapheneQuaternion>.
Returned: a boolean.
true if the quaternions are equal
Releases the resources allocated by quaternion:alloc.
Passed: a <GrapheneQuaternion>.
Initializes a <GrapheneQuaternion> using the
given four values.
Passed: a <GrapheneQuaternion>.
Passed: a real number.
the first component of the quaternion
Passed: a real number.
the second component of the quaternion
Passed: a real number.
the third component of the quaternion
Passed: a real number.
the fourth component of the quaternion
Returned: a <GrapheneQuaternion>.
the initialized quaternion
Initializes a <GrapheneQuaternion> using an
angle on a specific axis.
Passed: a <GrapheneQuaternion>.
Passed: a real number.
the rotation on a given axis, in degrees
Passed: a <GrapheneVec3>.
the axis of rotation, expressed as a vector
Returned: a <GrapheneQuaternion>.
the initialized quaternion
Initializes a <GrapheneQuaternion> using the
values of the Euler
angles on each axis.
See also: quaternion:init-from-euler
Passed: a <GrapheneQuaternion>.
Passed: a real number.
rotation angle on the X axis (yaw), in degrees
Passed: a real number.
rotation angle on the Y axis (pitch), in degrees
Passed: a real number.
rotation angle on the Z axis (roll), in degrees
Returned: a <GrapheneQuaternion>.
the initialized quaternion
Initializes a <GrapheneQuaternion> using the
given <GrapheneEuler>.
Passed: a <GrapheneQuaternion>.
the <GrapheneQuaternion> to initialize
Passed: a <GrapheneEuler>.
Returned: a <GrapheneQuaternion>.
the initialized <GrapheneQuaternion>
Initializes a <GrapheneQuaternion> using the
rotation components of a transformation matrix.
Passed: a <GrapheneQuaternion>.
Passed: a <GrapheneMatrix>.
Returned: a <GrapheneQuaternion>.
the initialized quaternion
Initializes a <GrapheneQuaternion> with the
values from src.
Passed: a <GrapheneQuaternion>.
Passed: a <GrapheneQuaternion>.
Returned: a <GrapheneQuaternion>.
the initialized quaternion
Initializes a <GrapheneQuaternion> using the
values of the Euler
angles on each axis.
See also: quaternion:init-from-euler
Passed: a <GrapheneQuaternion>.
Passed: a real number.
rotation angle on the X axis (yaw), in radians
Passed: a real number.
rotation angle on the Y axis (pitch), in radians
Passed: a real number.
rotation angle on the Z axis (roll), in radians
Returned: a <GrapheneQuaternion>.
the initialized quaternion
Initializes a <GrapheneQuaternion> with the
values from src.
Passed: a <GrapheneQuaternion>.
Passed: a <GrapheneVec4>.
Returned: a <GrapheneQuaternion>.
the initialized quaternion
Initializes a <GrapheneQuaternion> using the
identity transformation.
Passed: a <GrapheneQuaternion>.
Returned: a <GrapheneQuaternion>.
the initialized quaternion
Inverts a <GrapheneQuaternion>, and returns the
conjugate quaternion of self.
Passed: a <GrapheneQuaternion>.
Passed, filled in, and returned: a
<GrapheneQuaternion>.
return location for the inverted quaternion
Multiplies two <GrapheneQuaternion> self
and b.
Passed: a <GrapheneQuaternion>.
Passed: a <GrapheneQuaternion>.
Passed, filled in, and returned: a
<GrapheneQuaternion>.
the result of the operation
Normalizes a <GrapheneQuaternion>.
Passed: a <GrapheneQuaternion>.
Passed, filled in, and returned: a
<GrapheneQuaternion>.
return location for the normalized quaternion
Scales all the elements of a
<GrapheneQuaternion> self using the given
scalar factor.
Passed: a <GrapheneQuaternion>.
Passed: a real number.
a scaling factor
Passed, filled in, and returned: a
<GrapheneQuaternion>.
the result of the operation
Interpolates between the two given quaternions using a spherical linear interpolation, or SLERP, using the given interpolation factor.
Passed: a <GrapheneQuaternion>.
Passed: a <GrapheneQuaternion>.
Passed: a real number.
the linear interpolation factor
Passed, filled in, and returned: a
<GrapheneQuaternion>.
return location for the interpolated quaternion
Converts a quaternion into an angle, axis pair.
Passed: a <GrapheneQuaternion>.
Passed, filled in, and returned: a <GrapheneVec3>.
return location for the rotation axis
Returned: a real number.
return location for the angle, in degrees
Converts a <GrapheneQuaternion> to its
corresponding rotations on the
Euler angles on each
axis.
Passed: a <GrapheneQuaternion>.
Returned: a real number.
return location for the rotation angle on the X axis (yaw), in degrees
Returned: a real number.
return location for the rotation angle on the Y axis (pitch), in degrees
Returned: a real number.
return location for the rotation angle on the Z axis (roll), in degrees
Converts a quaternion into a transformation matrix expressing the
rotation defined by the <GrapheneQuaternion>.
Passed: a <GrapheneQuaternion>.
Passed, filled in, and returned: a
<GrapheneMatrix>.
Converts a <GrapheneQuaternion> to its
corresponding rotations on the
Euler angles on each
axis.
Passed: a <GrapheneQuaternion>.
Returned: a real number.
return location for the rotation angle on the X axis (yaw), in radians
Returned: a real number.
return location for the rotation angle on the Y axis (pitch), in radians
Returned: a real number.
return location for the rotation angle on the Z axis (roll), in radians
Copies the components of a <GrapheneQuaternion>
into a <GrapheneVec4>.
Passed: a <GrapheneQuaternion>.
Passed, filled in, and returned: a <GrapheneVec4>.
return location for a <GrapheneVec4>