Frees the resources allocated by graphene_euler_alloc().
Retrieves the first component of the Euler angle vector, depending on the order of rotation.
See also: graphene_euler_get_x()
Retrieves the second component of the Euler angle vector, depending on the order of rotation.
See also: graphene_euler_get_y()
Retrieves the third component of the Euler angle vector, depending on the order of rotation.
See also: graphene_euler_get_z()
Retrieves the order used to apply the rotations described in the #graphene_euler_t structure, when converting to and from other structures, like #graphene_quaternion_t and #graphene_matrix_t.
This function does not return the %GRAPHENE_EULER_ORDER_DEFAULT enumeration value; it will return the effective order of rotation instead.
Retrieves the rotation angle on the X axis, in degrees.
Retrieves the rotation angle on the Y axis, in degrees.
Retrieves the rotation angle on the Z axis, in degrees.
Initializes a #graphene_euler_t using the given angles.
The order of the rotations is %GRAPHENE_EULER_ORDER_DEFAULT.
rotation angle on the X axis, in degrees
rotation angle on the Y axis, in degrees
rotation angle on the Z axis, in degrees
Initializes a #graphene_euler_t using the given rotation matrix.
If the #graphene_matrix_t m
is %NULL, the #graphene_euler_t will
be initialized with all angles set to 0.
a rotation matrix
the order used to apply the rotations
Initializes a #graphene_euler_t using the given normalized quaternion.
If the #graphene_quaternion_t q
is %NULL, the #graphene_euler_t will
be initialized with all angles set to 0.
a normalized #graphene_quaternion_t
the order used to apply the rotations
Initializes a #graphene_euler_t using the given angles and order of rotation.
rotation angle on the X axis, in radians
rotation angle on the Y axis, in radians
rotation angle on the Z axis, in radians
order of rotations
Initializes a #graphene_euler_t using the angles contained in a #graphene_vec3_t.
If the #graphene_vec3_t v
is %NULL, the #graphene_euler_t will be
initialized with all angles set to 0.
a #graphene_vec3_t containing the rotation angles in degrees
the order used to apply the rotations
Initializes a #graphene_euler_t with the given angles and order
.
rotation angle on the X axis, in degrees
rotation angle on the Y axis, in degrees
rotation angle on the Z axis, in degrees
the order used to apply the rotations
Reorders a #graphene_euler_t using order
.
This function is equivalent to creating a #graphene_quaternion_t from the given #graphene_euler_t, and then converting the quaternion into another #graphene_euler_t.
the new order
Converts a #graphene_euler_t 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 #graphene_euler_t; for instance, if the order
used to initialize e
is %GRAPHENE_EULER_ORDER_XYZ:
The rotation sign convention is right-handed, to preserve compatibility between Euler-based, quaternion-based, and angle-axis-based rotations.
Converts a #graphene_euler_t into a #graphene_quaternion_t.
Describe a rotation using Euler angles.
The contents of the #graphene_euler_t structure are private and should never be accessed directly.