This is the documentation for Enlighten.
module Quaternions
Functions
Name | Description |
|---|---|
Construct a matrix from a quaternion. | |
Assumes q is unit. | |
Converts quaternion into euler angles in XYZ order, stored in those components. | |
Construct a matrix from a quaternion. | |
Flips inputs to be on the same hyper-hemisphere. Use QFullSlerp if desired. | |
q* = -xyz, +w | |
Does not flip inputs to be on the same hyper-hemisphere. Use QClosestSlerp if desired. | |
q* = -xyz, +w | |
Assumes a and b are unit. | |
quat multiply. | |
Assumes q is unit. | |
Converts quaternion into euler angles in XYZ order, stored in those components. |
Typedefs
Name | Description |
|---|---|
v128 Quat | Quaternion definition. |
Matrix Geo::MConstructQuaternion
public: Matrix MConstructQuaternion
(
Quat q
)
Construct a matrix from a quaternion.
v128 Geo::QApplyToVec
public: v128 QApplyToVec
(
Quat q,
v128 v
)
Assumes q is unit.
Quat Geo::QBuildFromEulerAngles
public: Quat QBuildFromEulerAngles
(
float x,
float y,
float z
)