Quaternion

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

Represents double-based quaternion.

Constructors

Quaternion
Link copied to clipboard
fun Quaternion(w: Number, x: Number, y: Number, z: Number)
Quaternion
Link copied to clipboard
fun Quaternion(w: Number, x: Number, y: Number)
Quaternion
Link copied to clipboard
fun Quaternion(w: Number, x: Number)
Quaternion
Link copied to clipboard
fun Quaternion(w: Number)
Quaternion
Link copied to clipboard
fun Quaternion(wx: Complex, yz: Complex)
Quaternion
Link copied to clipboard
fun Quaternion(wx: Complex)
Quaternion
Link copied to clipboard
fun Quaternion(w: Double, x: Double, y: Double, z: Double)

Types

Companion
Link copied to clipboard
object Companion : MemorySpec<Quaternion>

Functions

toString
Link copied to clipboard
open override fun toString(): String
Returns a string representation of this quaternion.

Properties

w
Link copied to clipboard
val w: Double
The first component.
x
Link copied to clipboard
val x: Double
The second component.
y
Link copied to clipboard
val y: Double
The third component.
z
Link copied to clipboard
val z: Double
The fourth component.

Extensions

conjugate
Link copied to clipboard
val Quaternion.conjugate: Quaternion
This quaternion's conjugate.
div
Link copied to clipboard
open operator fun Quaternion.div(other: Quaternion): Quaternion
open operator fun Quaternion.div(k: Number): Quaternion
minus
Link copied to clipboard
open operator override fun Quaternion.minus(other: Number): Quaternion
open operator fun Quaternion.minus(other: Quaternion): Quaternion
plus
Link copied to clipboard
open operator override fun Quaternion.plus(other: Number): Quaternion
open operator fun Quaternion.plus(other: Quaternion): Quaternion
pow
Link copied to clipboard
open infix fun Quaternion.pow(pow: Number): Quaternion
r
Link copied to clipboard
val Quaternion.r: Double
Absolute value of the quaternion.
reciprocal
Link copied to clipboard
val Quaternion.reciprocal: Quaternion
This quaternion's reciprocal.
times
Link copied to clipboard
open operator fun Quaternion.times(other: Quaternion): Quaternion
open operator fun Quaternion.times(k: Number): Quaternion
unaryMinus
Link copied to clipboard
open operator override fun Quaternion.unaryMinus(): Quaternion
unaryPlus
Link copied to clipboard
open operator fun Quaternion.unaryPlus(): Quaternion

Sources

common source
Link copied to clipboard