Quaternion
A quaternion.
The contents of the #graphene_quaternion_t structure are private and should never be accessed directly.
Skipped during bindings generation
parameter
angle
: angle: Out parameter is not supportedparameter
deg_x
: deg_x: Out parameter is not supportedparameter
rad_x
: rad_x: Out parameter is not supported
Since
1.0
Constructors
Allocate a new Quaternion.
Allocate a new Quaternion using the provided AutofreeScope.
Functions
Adds two #graphene_quaternion_t @a and @b.
Computes the dot product of two #graphene_quaternion_t.
Checks whether the given quaternions are equal.
Initializes a #graphene_quaternion_t using the given four values.
Initializes a #graphene_quaternion_t using the values of the Euler angles on each axis.
Initializes a #graphene_quaternion_t using an @angle on a specific @axis.
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.
Initializes a #graphene_quaternion_t using the values of the Euler angles on each axis.
Initializes a #graphene_quaternion_t with the values from @src.
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.
Normalizes a #graphene_quaternion_t.
Scales all the elements of a #graphene_quaternion_t @q using the given scalar factor.
Interpolates between the two given quaternions using a spherical linear interpolation, or SLERP, using the given interpolation @factor.