Structure

simd_quatf

A single-precision quaternion.

Declaration

typedef struct {
    ...
} simd_quatf;

Topics

Quaternion Properties

vector

The underlying vector of the quaternion.

Quaternion Creation Functions

simd_quaternion

Returns a new quaternion from 4 scalar values.

simd_quaternion

Returns a new quaternion from a scalar value and a three-element vector.

simd_quaternion

Returns a new quaternion from a pointer to scalar values.

simd_quaternion

Returns a new quaternion from 2 three-element vectors.

simd_quaternion

Returns a new quaternion from a 3 x 3 matrix.

simd_quaternion

Returns a new quaternion from a four-element vector.

simd_quaternion

Returns a new quaternion from a 4 x 4 matrix.

Math Functions

simd_add

Returns the sum of two quaternions.

simd_mul

Returns the product of two quaternions.

simd_sub

Returns the difference between two quaternions.

Quaternion Functions

simd_act

Returns a vector rotated by a quaternion.

simd_angle

Returns the angle by which a quaternion rotates.

simd_axis

Returns the axis about which a quaternion rotates.

simd_bezier

Returns the spherical cubic Bezier interpolation between quaternions.

simd_conjugate

Returns the conjugate of a quaternion.

simd_imag

Returns the imaginary (vector) part of a quaternion.

simd_negate

Returns the negation of a quaternion.

simd_real

Returns the real (scalar) part of a quaternion.

simd_slerp

Returns a spherical linearly interpolated value along the shortest arc between two quaternions.

simd_slerp_longest

Returns a spherical linearly interpolated value along the longest arc between two quaternions.

simd_spline

Returns an interpolated value between two quaternions along a spherical cubic spline.

Geometry Functions

simd_dot

Returns the dot product of two quaternions.

simd_length

Returns the length of a quaternion.

simd_normalize

Returns a quaternion pointing in the same direction as the supplied quaternion with a length of 1.

Inverse Function

simd_inverse

Returns the inverse of a quaternion.

See Also

Quaternions

Rotating a Cube by Transforming Its Vertices

Rotate a cube through a series of keyframes using quaternion interpolation to transition between them.

simd_quatd

A double-precision quaternion.