Quaternion

data class Quaternion(x: Float, y: Float, z: Float, w: Float)

Types

Companion
Link copied to clipboard
object Companion

Functions

isIdentity
Link copied to clipboard
fun isIdentity(): Boolean
mul
Link copied to clipboard
fun mul(other: Quaternion): Quaternion
Multiplies this quaternion with another one in the form of this = this * other
times
Link copied to clipboard
operator fun Quaternion.times(other: Quaternion): Quaternion
toEulerAngles
Link copied to clipboard
fun toEulerAngles(): Float3
Transform a quaternion in Euler angles.
toFloatArray
Link copied to clipboard
fun toFloatArray(): FloatArray
toString
Link copied to clipboard
open override fun toString(): String

Properties

w
Link copied to clipboard
val w: Float
x
Link copied to clipboard
val x: Float
y
Link copied to clipboard
val y: Float
z
Link copied to clipboard
val z: Float