Utility functions for quaternions, which are represented as a list of four real values (x, y, z, and angle).
pwu:: | Utility functions for quaternions, which are represented as a list of four real values (x, y, z, and angle). |
Static Actions | |
zero | Return a quaternion that represents no rotation |
set | Return a quaternion with the given axis and angle |
axis | Get the axis vector of a quaternion |
angle | Get the angle of a quaternion |
equal | Check if two quaternions are equal |
notEquals | Check if two quaternions are not equal |
rotate | Rotate one quaternion by another quaternion |
inverse | Return the inverse of a quaternion |
normalize | Return the normalization of a quaternion |
Return a quaternion that represents no rotation
pwu::Quaternion zero
Return a quaternion with the given axis and angle
pwu::Quaternion set axis angle
Get the axis vector of a quaternion
pwu::Quaternion axis quat
Get the angle of a quaternion
pwu::Quaternion angle quat
Check if two quaternions are equal
pwu::Quaternion equal quat1 quat2
Rotate one quaternion by another quaternion
pwu::Quaternion rotate quat1 quat2
Return the inverse of a quaternion
pwu::Quaternion inverse quat
Return the normalization of a quaternion
pwu::Quaternion normalize quat