Constructor of Quaternion.
The x component of the quaternion, default 0
The y component of the quaternion, default 0
The z component of the quaternion, default 0
The w component of the quaternion, default 1
Internal
Internal
_wInternal
_xInternal
_yInternal
_zStatic
Readonly
Internal
_tempStatic
Readonly
Internal
_tempIndicting whether this instance is normalized.
The w component of the quaternion.
The x component of the quaternion.
The y component of the quaternion.
The z component of the quaternion.
Private
_toCreates a clone of this quaternion.
A clone of this quaternion
Clones this quaternion to the specified quaternion.
The specified quaternion
The specified quaternion
Transforms this quaternion into its conjugated version.
This quaternion
Determines the dot product of this quaternion and the specified quaternion.
The dot product of two quaternions
The specified quaternion
Identity this quaternion.
This quaternion after identity
Invert this quaternion.
This quaternion after invert
Performs a linear blend between this quaternion and the specified quaternion.
The specified quaternion
The blend amount where 0 returns this and 1 quat
Determines the product of this quaternion and the specified quaternion.
The product of the two quaternions
The specified quaternion
Converts this quaternion into a unit quaternion.
This quaternion
Calculate this quaternion rotation around an arbitrary axis.
This quaternion
The axis
The rotation angle in radians
Calculate this quaternion rotate around X axis.
This quaternion
The rotation angle in radians
Calculate this quaternion rotate around Y axis.
This quaternion
The rotation angle in radians
Calculate this quaternion rotate around Z axis.
This quaternion
The rotation angle in radians
Calculate this quaternion rotates around an arbitrary axis.
This quaternion
The axis
The rotation angle in radians
Set the value of this quaternion, and return this quaternion.
This quaternion
The x component of the quaternion
The y component of the quaternion
The z component of the quaternion
The w component of the quaternion
Set the value of this quaternion by an array.
This quaternion
The array
The start offset of the array
Static
addDetermines the sum of two quaternions.
The first quaternion to add
The second quaternion to add
The sum of two quaternions
Static
conjugateCalculate quaternion that contains conjugated version of the specified quaternion.
The specified quaternion
The conjugate version of the specified quaternion
Static
dotDetermines the dot product of two quaternions.
The dot product of two quaternions
The first quaternion to dot
The second quaternion to dot
Static
equalsDetermines whether the specified quaternions are equals.
True if the specified quaternions are equals, false otherwise
The first quaternion to compare
The second quaternion to compare
Static
invertCalculate the inverse of the specified quaternion.
The quaternion whose inverse is to be calculated
The inverse of the specified quaternion
Static
lerpPerforms a linear blend between two quaternions.
The first quaternion
The second quaternion
The blend amount where 0 returns start and 1 end
The result of linear blending between two quaternions
Static
multiplyDetermines the product of two quaternions.
The first quaternion to multiply
The second quaternion to multiply
The product of two quaternions
Static
normalizeScales the specified quaternion magnitude to unit length.
The specified quaternion
The normalized quaternion
Static
rotateXCalculate a quaternion that the specified quaternion rotate around X axis.
The specified quaternion
The rotation angle in radians
The calculated quaternion
Static
rotateYCalculate a quaternion that the specified quaternion rotate around Y axis.
The specified quaternion
The rotation angle in radians
The calculated quaternion
Static
rotateZCalculate a quaternion that the specified quaternion rotate around Z axis.
The specified quaternion
The rotation angle in radians
The calculated quaternion
Static
rotationCalculate a quaternion rotates around an arbitrary axis.
The axis
The rotation angle in radians
The quaternion after rotate
Static
rotationCalculate a quaternion rotates around x, y, z axis (pitch/yaw/roll).
The radian of rotation around X (pitch)
The radian of rotation around Y (yaw)
The radian of rotation around Z (roll)
The calculated quaternion
Static
rotationCalculate a quaternion from the specified 3x3 matrix.
The specified 3x3 matrix
The calculated quaternion
Static
rotationXCalculate a quaternion rotate around X axis.
The rotation angle in radians
The calculated quaternion
Static
rotationYCalculate a quaternion rotate around Y axis.
The rotation angle in radians
The calculated quaternion
Static
rotationCalculate a quaternion from the specified yaw, pitch and roll angles.
Yaw around the y axis in radians
Pitch around the x axis in radians
Roll around the z axis in radians
The calculated quaternion
Static
rotationZCalculate a quaternion rotate around Z axis.
The rotation angle in radians
The calculated quaternion
Static
scaleScale a quaternion by a given number.
The quaternion
The given number
The scaled quaternion
Static
slerpPerforms a spherical linear blend between two quaternions.
The first quaternion
The second quaternion
The blend amount where 0 returns start and 1 end
The result of spherical linear blending between two quaternions
Generated using TypeDoc
Represents a four dimensional mathematical quaternion.