Constructors

Link copied to clipboard
constructor()
constructor(w: Float = 1.0f, x: Float = 0.0f, y: Float = 0.0f, z: Float = 0.0f)

Types

Link copied to clipboard
object Op

Properties

Link copied to clipboard
open override val count: Int

Number of individual instances this object represents

Link copied to clipboard
open override val dataType: ZDataType

The data type stored

Link copied to clipboard
open override val floatArray: FloatArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val size: Int

Number of elements contained within the values array with the specific type defined in dataType

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

Functions

Link copied to clipboard
fun conjugate()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun identity()
Link copied to clipboard
fun invert()
Link copied to clipboard
operator fun minus(q: ZQuaternion): ZQuaternion
Link copied to clipboard
fun normalize()

Normalizes the quaternion.

Link copied to clipboard
operator fun plus(q: ZQuaternion): ZQuaternion
Link copied to clipboard
fun rotate(angle: Float, axis: ZVector3)

Rotates the quaternion by a specified angle around a specified axis.

Link copied to clipboard
fun setValues(w: Float, x: Float, y: Float, z: Float)
Link copied to clipboard
operator fun times(scalar: Float): ZQuaternion
operator fun times(q: ZQuaternion): ZQuaternion
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun zero()