Quaternion

data class Quaternion(val x: Float, val y: Float, val z: Float, val w: Float) : IsAlmostEqualsF<Quaternion>

Constructors

Link copied to clipboard
constructor(vector: Vector4F, unit: Unit = Unit)
constructor()
constructor(x: Double, y: Double, z: Double, w: Double)
constructor(x: Float, y: Float, z: Float, w: Float)

Types

Link copied to clipboard
object Companion

Properties

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

Functions

Link copied to clipboard
fun angleTo(other: Quaternion): Angle
Link copied to clipboard
Link copied to clipboard
operator fun get(index: Int): Float
Link copied to clipboard
Link copied to clipboard

Also known as conjugate

Link copied to clipboard
open override fun isAlmostEquals(other: Quaternion, epsilon: Float): Boolean
Link copied to clipboard
operator fun minus(other: Quaternion): Quaternion
Link copied to clipboard
Link copied to clipboard
operator fun plus(other: Quaternion): Quaternion
Link copied to clipboard
fun scaled(scale: Double): Quaternion
fun scaled(scale: Float): Quaternion
fun scaled(scale: Int): Quaternion
Link copied to clipboard
operator fun times(other: Quaternion): Quaternion
operator fun times(scale: Double): Quaternion
operator fun times(scale: Float): Quaternion
Link copied to clipboard
fun toEuler(config: EulerRotation.Config = EulerRotation.Config.DEFAULT): EulerRotation
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun unaryMinus(): Quaternion