Constructors
constructor
- new Quat(elements?, axisOrder?): Quat
Parameters
Optional
elements: Float32Array = ...
Optional
axisOrder: AxisOrder = 'XYZ'
Properties
elements
elements: Float32Array
Methods
setFromArray
- setFromArray(array?): Quat
Parameters
array: number[] | Float32Array = ...
- this Quat after being set
setAxisOrder
- setAxisOrder(axisOrder?): Quat
Parameters
axisOrder: string = 'XYZ'
- this Quat after axis order has been set
equals
- equals(quaternion?): boolean
Returns boolean
- whether the Quat are equal or not
setFromVec3
- setFromVec3(vector): Quat
- Quat after having applied the rotation
setFromAxisAngle
- setFromAxisAngle(axis, angle?): Quat
- Quat after having applied the rotation
setFromRotationMatrix
- setFromRotationMatrix(matrix): Quat
- Quat after having applied the rotation
Really basic quaternion class used for 3D rotation calculations
See
https://github.com/mrdoosb/three.js/blob/dev/src/math/Quaternion.js