Describe a rotation using Euler angles.
The contents of the <GrapheneEuler> structure are
private and should never be accessed directly.
Allocates a new <GrapheneEuler>.
The contents of the returned structure are undefined.
Returned: a <GrapheneEuler>.
the newly allocated <GrapheneEuler>
Checks if two <GrapheneEuler> are equal.
Passed: a <GrapheneEuler>.
Passed: a <GrapheneEuler>.
Returned: a boolean.
true if the two <GrapheneEuler> are equal
Frees the resources allocated by euler:alloc.
Passed: a <GrapheneEuler>.
Retrieves the first component of the Euler angle vector, depending on the order of rotation.
See also: euler:get-x
Passed: a <GrapheneEuler>.
Returned: a real number.
the first component of the Euler angle vector, in radians
Retrieves the second component of the Euler angle vector, depending on the order of rotation.
See also: euler:get-y
Passed: a <GrapheneEuler>.
Returned: a real number.
the second component of the Euler angle vector, in radians
Retrieves the third component of the Euler angle vector, depending on the order of rotation.
See also: euler:get-z
Passed: a <GrapheneEuler>.
Returned: a real number.
the third component of the Euler angle vector, in radians
Retrieves the order used to apply the rotations described in the
<GrapheneEuler> structure, when converting to and
from other structures, like
<GrapheneQuaternion> and
<GrapheneMatrix>.
This function does not return the default
enumeration value; it will return the effective order of rotation
instead.
Passed: a <GrapheneEuler>.
Returned: a <%GrapheneEulerOrder>.
the order used to apply the rotations
Retrieves the rotation angle on the X axis, in degrees.
Passed: a <GrapheneEuler>.
Returned: a real number.
the rotation angle
Retrieves the rotation angle on the Y axis, in degrees.
Passed: a <GrapheneEuler>.
Returned: a real number.
the rotation angle
Retrieves the rotation angle on the Z axis, in degrees.
Passed: a <GrapheneEuler>.
Returned: a real number.
the rotation angle
Initializes a <GrapheneEuler> using the given
angles.
The order of the rotations is default.
Passed: a <GrapheneEuler>.
the <GrapheneEuler> to initialize
Passed: a real number.
rotation angle on the X axis, in degrees
Passed: a real number.
rotation angle on the Y axis, in degrees
Passed: a real number.
rotation angle on the Z axis, in degrees
Returned: a <GrapheneEuler>.
the initialized <GrapheneEuler>
Initializes a <GrapheneEuler> using the angles and
order of another <GrapheneEuler>.
If the <GrapheneEuler> src is #f, this
function is equivalent to calling euler:init
with all angles set to 0.
Passed: a <GrapheneEuler>.
the <GrapheneEuler> to initialize
Passed, or left out: a <GrapheneEuler>, or
#f.
Returned: a <GrapheneEuler>.
the initialized <GrapheneEuler>
Initializes a <GrapheneEuler> using the given
rotation matrix.
If the <GrapheneMatrix> m is #f, the
<GrapheneEuler> will be initialized with all angles
set to 0.
Passed: a <GrapheneEuler>.
the <GrapheneEuler> to initialize
Passed: a <GrapheneMatrix>, or #f.
a rotation matrix
Passed: a <%GrapheneEulerOrder>, or one of its
symbols.
the order used to apply the rotations
Returned: a <GrapheneEuler>.
the initialized <GrapheneEuler>
Initializes a <GrapheneEuler> using the given
normalized quaternion.
If the <GrapheneQuaternion> q is
#f, the <GrapheneEuler> will be initialized
with all angles set to 0.
Passed: a <GrapheneEuler>.
Passed: a <GrapheneQuaternion>, or #f.
a normalized <GrapheneQuaternion>
Passed: a <%GrapheneEulerOrder>, or one of its
symbols.
the order used to apply the rotations
Returned: a <GrapheneEuler>.
the initialized <GrapheneEuler>
Initializes a <GrapheneEuler> using the given angles
and order of rotation.
Passed: a <GrapheneEuler>.
the <GrapheneEuler> to initialize
Passed: a real number.
rotation angle on the X axis, in radians
Passed: a real number.
rotation angle on the Y axis, in radians
Passed: a real number.
rotation angle on the Z axis, in radians
Passed: a <%GrapheneEulerOrder>, or one of its
symbols.
order of rotations
Returned: a <GrapheneEuler>.
the initialized <GrapheneEuler>
Initializes a <GrapheneEuler> using the angles
contained in a <GrapheneVec3>.
If the <GrapheneVec3> v is #f, the
<GrapheneEuler> will be initialized with all angles
set to 0.
Passed: a <GrapheneEuler>.
the <GrapheneEuler> to initialize
Passed: a <GrapheneVec3>, or #f.
a <GrapheneVec3> containing the rotation angles in
degrees
Passed: a <%GrapheneEulerOrder>, or one of its
symbols.
the order used to apply the rotations
Returned: a <GrapheneEuler>.
the initialized <GrapheneEuler>
Initializes a <GrapheneEuler> with the given angles
and order.
Passed: a <GrapheneEuler>.
the <GrapheneEuler> to initialize
Passed: a real number.
rotation angle on the X axis, in degrees
Passed: a real number.
rotation angle on the Y axis, in degrees
Passed: a real number.
rotation angle on the Z axis, in degrees
Passed: a <%GrapheneEulerOrder>, or one of its
symbols.
the order used to apply the rotations
Returned: a <GrapheneEuler>.
the initialized <GrapheneEuler>
Reorders a <GrapheneEuler> using order.
This function is equivalent to creating a
<GrapheneQuaternion> from the given
<GrapheneEuler>, and then converting the quaternion
into another <GrapheneEuler>.
Passed: a <GrapheneEuler>.
Passed: a <%GrapheneEulerOrder>, or one of its
symbols.
the new order
Passed, filled in, and returned: a <GrapheneEuler>.
return location for the reordered <GrapheneEuler>
Converts a <GrapheneEuler> into a transformation
matrix expressing the extrinsic composition of rotations described by
the Euler angles.
The rotations are applied over the reference frame axes in the order
associated with the <GrapheneEuler>; for instance,
if the order used to initialize self is
xyz:
The rotation sign convention is right-handed, to preserve compatibility between Euler-based, quaternion-based, and angle-axis-based rotations.
Passed: a <GrapheneEuler>.
Passed, filled in, and returned: a
<GrapheneMatrix>.
return location for a <GrapheneMatrix>
Converts a <GrapheneEuler> into a
<GrapheneQuaternion>.
Passed: a <GrapheneEuler>.
Passed, filled in, and returned: a
<GrapheneQuaternion>.
return location for a <GrapheneQuaternion>
Retrieves the angles of a <GrapheneEuler> and
initializes a <GrapheneVec3> with them.
Passed: a <GrapheneEuler>.
Passed, filled in, and returned: a <GrapheneVec3>.
return location for a <GrapheneVec3>