ZernikalosmathZQuaternionZQuaternion Members Constructors ZQuaternion Link copied to clipboard constructor()constructor(w: Float = 1.0f, x: Float = 0.0f, y: Float = 0.0f, z: Float = 0.0f) Types Op Link copied to clipboard object Op Properties count Link copied to clipboard open override val count: IntNumber of individual instances this object represents dataType Link copied to clipboard open override val dataType: ZDataTypeThe data type stored floatArray Link copied to clipboard open override val floatArray: FloatArray isNormalized Link copied to clipboard val isNormalized: Boolean norm2 Link copied to clipboard val norm2: Float size Link copied to clipboard open override val size: IntNumber of elements contained within the values array with the specific type defined in dataType w Link copied to clipboard var w: Float x Link copied to clipboard var x: Float y Link copied to clipboard var y: Float z Link copied to clipboard var z: Float Functions conjugate Link copied to clipboard fun conjugate() copy Link copied to clipboard fun copy(q: ZQuaternion) fromMatrix4 Link copied to clipboard fun fromMatrix4(m: ZMatrix4) identity Link copied to clipboard fun identity() invert Link copied to clipboard fun invert() minus Link copied to clipboard operator fun minus(q: ZQuaternion): ZQuaternion normalize Link copied to clipboard fun normalize()Normalizes the quaternion. plus Link copied to clipboard operator fun plus(q: ZQuaternion): ZQuaternion rotate Link copied to clipboard fun rotate(angle: Float, axis: ZVector3)Rotates the quaternion by a specified angle around a specified axis. setValues Link copied to clipboard fun setValues(w: Float, x: Float, y: Float, z: Float) times Link copied to clipboard operator fun times(scalar: Float): ZQuaternionoperator fun times(q: ZQuaternion): ZQuaternion toString Link copied to clipboard open override fun toString(): String zero Link copied to clipboard fun zero()