Quaternion

@Serializable
data class Quaternion(    val x: Double,     val y: Double,     val z: Double,     val w: Double)

Quaternion class for representing orientations in 3D space

Constructors

Link copied to clipboard
fun Quaternion(    x: Double,     y: Double,     z: Double,     w: Double)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
operator fun times(q: Quaternion): Quaternion
operator fun times(vec: Vector3): Vector3

Properties

Link copied to clipboard
val inversed: Quaternion
Link copied to clipboard
val length: Double
Link copied to clipboard
val matrix: Matrix33

An orthonormal basis for the orientation described by the quaternion

Link copied to clipboard
val negated: Quaternion
Link copied to clipboard
val norm: Double
Link copied to clipboard
val normalized: Quaternion
Link copied to clipboard
val w: Double
Link copied to clipboard
val x: Double
Link copied to clipboard
val y: Double
Link copied to clipboard
val z: Double

Sources

Link copied to clipboard