Quaternion

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

Quaternion class for representing orientations in 3D space

Constructors

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

Types

Companion
Link copied to clipboard
object Companion

Functions

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

Properties

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

An orthonormal basis for the orientation described by the quaternion

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