Adds two #graphene_quaternion_t a
and b
.
a #graphene_quaternion_t
Computes the dot product of two #graphene_quaternion_t.
a #graphene_quaternion_t
Checks whether the given quaternions are equal.
a #graphene_quaternion_t
Releases the resources allocated by graphene_quaternion_alloc().
Initializes a #graphene_quaternion_t using the given four values.
the first component of the quaternion
the second component of the quaternion
the third component of the quaternion
the fourth component of the quaternion
Initializes a #graphene_quaternion_t using an angle
on a
specific axis
.
the rotation on a given axis, in degrees
the axis of rotation, expressed as a vector
Initializes a #graphene_quaternion_t using the values of the Euler angles on each axis.
See also: graphene_quaternion_init_from_euler()
rotation angle on the X axis (yaw), in degrees
rotation angle on the Y axis (pitch), in degrees
rotation angle on the Z axis (roll), in degrees
Initializes a #graphene_quaternion_t using the given #graphene_euler_t.
Initializes a #graphene_quaternion_t using the rotation components of a transformation matrix.
Initializes a #graphene_quaternion_t with the values from src
.
a #graphene_quaternion_t
Initializes a #graphene_quaternion_t using the values of the Euler angles on each axis.
See also: graphene_quaternion_init_from_euler()
rotation angle on the X axis (yaw), in radians
rotation angle on the Y axis (pitch), in radians
rotation angle on the Z axis (roll), in radians
Initializes a #graphene_quaternion_t with the values from src
.
a #graphene_vec4_t
Initializes a #graphene_quaternion_t using the identity transformation.
Inverts a #graphene_quaternion_t, and returns the conjugate
quaternion of q
.
Multiplies two #graphene_quaternion_t a
and b
.
a #graphene_quaternion_t
Normalizes a #graphene_quaternion_t.
Scales all the elements of a #graphene_quaternion_t q
using
the given scalar factor.
a scaling factor
Interpolates between the two given quaternions using a spherical
linear interpolation, or SLERP,
using the given interpolation factor
.
a #graphene_quaternion_t
the linear interpolation factor
Converts a #graphene_quaternion_t to its corresponding rotations on the Euler angles on each axis.
Converts a #graphene_quaternion_t to its corresponding rotations on the Euler angles on each axis.
Copies the components of a #graphene_quaternion_t into a #graphene_vec4_t.
Allocates a new #graphene_quaternion_t.
The contents of the returned value are undefined.
A quaternion.
The contents of the #graphene_quaternion_t structure are private and should never be accessed directly.