| Name | Summary |
|---|---|
PoseQuaternion |
| Name | Summary |
|---|---|
w | open override var w: Float |
x | open override var x: Float |
y | open override var y: Float |
z | open override var z: Float |
| Name | Summary |
|---|---|
component1 | operator fun component1(): Float |
component2 | operator fun component2(): Float |
component3 | operator fun component3(): Float |
component4 | operator fun component4(): Float |
conjugate | fun conjugate(): Quaternion Calculates the conjugate of the quaternion. |
copy | fun copy(): Quaternion Returns a copy of this Quaternion. |
dot | fun dot(other: Quaternion): Float Calculates the dot product of two quaternions. |
equals | open operator override fun equals(other: Any?): Boolean |
hashCode | open override fun hashCode(): Int |
inverse | fun inverse(): Quaternion Calculates the inverse of the quaternion. |
nlerp | fun nlerp(dest: Quaternion, ratio: Float): Quaternion Performs normalized linear interpolation between the current quaternion and the destination quaternion. |
norm | fun norm(): Float Calculates the squared magnitude (length) of the quaternion. |
normalize | fun normalize(): Quaternion Normalizes the quaternion to have a magnitude of 1. |
removePitchAndRoll | fun removePitchAndRoll(): Quaternion Removes the pitch and roll components from the quaternion, leaving only the yaw component. |
slerp | fun slerp(dest: Quaternion, ratio: Float): Quaternion Performs spherical linear interpolation between the current quaternion and the destination quaternion. |
times | inline operator fun times(q: Quaternion): Quaternion Multiplies this quaternion with another quaternion. inline operator fun times(v: Vector3): Vector3 Multiplies this quaternion with a vector. |
toEuler | fun toEuler(): Vector3 Converts the quaternion to Euler angles (pitch, yaw, roll). |
toRotationMatrix44 | fun toRotationMatrix44(): Matrix44 Converts the quaternion to a 4x4 rotation matrix. |
toString | open override fun toString(): String |
toVector4 | fun toVector4(): Vector4 Converts the quaternion to a 4D vector. |
unaryMinus | inline operator fun unaryMinus(): Quaternion Negates the quaternion. |