Expand description

Quaternion Libraly (f32 & f64)

Enums

Represents 12 different rotations.

Specify the rotation type of Euler angles.

Traits

Provides a SIMD implementation with the std::arch module.

Functions

Calculate a + b

Calculate a + b

Compute the conjugate quaternion.

Cross product.

Dot product of quaternion.

Dot product of vector.

Exponential function of quaternion.

Exponential function of vector3.

Rotation of frame (Frame Rotation - Point Fixed)

Generate Versor by specifying rotation angle[rad] and axis vector.

Convert a DCM to a Quaternion representing the q v q* rotation (Point Rotation - Frame Fixed).

Convert Euler angles to Quaternion.

Convert Rotation vector to Quaternion (Unit quaternion).

Hadamard product of Quaternion.

Hadamard product and Addiction of Quaternion.

Hadamard product and Addiction of Vector.

Hadamard product of Vector.

Compute the inverse quaternion.

Compute the inverse pure quaternion.

Lerp (Linear interpolation)

Natural logarithm of quaternion.

Natural logarithm of versor.

Product of matrix and vector

Hamilton product.

Product of pure quaternions.

Invert the sign of a quaternion.

Invert the sign of a vector.

Calculate L2 norm.

Calculate L2 norm.

Normalization of quaternion.

Normalization of vector3.

Rotation of point (Point Rotation - Frame Fixed)

Power function of quaternion.

Power function of versor.

Calculate a versor to rotate from vector a to b.

Calculate a versor to rotate from vector a to b.

Calculate s * q

Calculate s*a + b

Calculate s*a + b

Calculate s * v

Slerp (Spherical linear interpolation)

Calculate a - b

Calculate a - b

Calculate the sum of each element of Quaternion.

Calculate the sum of each element of Vector3.

Compute the rotation axis (unit vector) and the rotation angle[rad] around the axis from the versor.

Convert a Quaternion to a DCM representing the q v q* rotation (Point Rotation - Frame Fixed).

Convert Quaternion (Unit quaternion) to Euler angles.

Convert Versor to rotation vector.

Type Definitions

Direction Cosine Matrix

(1, [i, j, k])

[i, j, k]