Quaternion

class Quaternion(val w: Double, val x: Double, val y: Double, val z: Double) : Buffer<Double> (source)

Represents double-based quaternion.

Constructors

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

Types

Link copied to clipboard

Functions

Link copied to clipboard
open operator fun Quaternion.div(arg: Quaternion): Quaternion
open operator fun Quaternion.div(k: Number): Quaternion
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open operator override fun get(index: Int): Double
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open operator override fun iterator(): Iterator<Double>
Link copied to clipboard
open operator override fun Quaternion.minus(other: Number): Quaternion
open operator fun Quaternion.minus(arg: Quaternion): Quaternion
Link copied to clipboard

Produce a normalized version of this quaternion

Link copied to clipboard
open operator override fun Quaternion.plus(other: Number): Quaternion
open operator fun Quaternion.plus(arg: Quaternion): Quaternion
Link copied to clipboard
open infix fun Quaternion.pow(pow: Number): Quaternion
Link copied to clipboard
open operator fun Quaternion.times(arg: Quaternion): Quaternion
open operator fun Quaternion.times(k: Number): Quaternion
Link copied to clipboard
open override fun toString(): String

Returns a string representation of this quaternion.

Link copied to clipboard
open operator override fun Quaternion.unaryMinus(): Quaternion
Link copied to clipboard
open operator fun Quaternion.unaryPlus(): Quaternion

Properties

Link copied to clipboard

This quaternion's conjugate.

Link copied to clipboard

This quaternion's reciprocal.

Link copied to clipboard
open override val size: Int
Link copied to clipboard
val w: Double

The first component.

Link copied to clipboard
val x: Double

The second component.

Link copied to clipboard
val y: Double

The third component.

Link copied to clipboard
val z: Double

The fourth component.