Quaternion

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

Quaternion class for representing orientations in 3D space

Constructors

Link copied to clipboard
constructor(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
Link copied to clipboard
Link copied to clipboard

An orthonormal basis for the orientation described by the quaternion

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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