Skip to main content

Class: Quaternion

This page documents the methods and fields available in the Quaternion class.

Members

SignatureDescription
Quaternion(float, float, float, float)Creates a new instance of Quaternion.
add(Quaternion)Adds an item to the collection.
add(float, float, float, float)Adds an item to the collection.
angleAxis(float, Vector3)Performs the angleAxis operation using the provided parameters (angle, value).
angleAxis(float, float, float, float)Performs the angleAxis operation using the provided parameters (angle, x, y, z).
blend(Quaternion, float)Performs the blend operation using the provided parameters (quaternion, blend).
blendOut(Quaternion, Quaternion, float)Performs the blendOut operation using the provided parameters (a, b, blend).
copy()Returns a copy of this Quaternion instance.
createFromEuler(Vector3)Creates a new from euler.
createFromEuler(float, float, float)Creates a new from euler.
deserializeLocal(String)Performs the deserializeLocal operation using the provided parameters (str).
equals(Object)Compares this instance with another for equality/order.
equals(Quaternion)Compares this instance with another for equality/order.
equals(float)Compares this instance with another for equality/order.
equals(float, float, float, float)Compares this instance with another for equality/order.
fromEuler(Vector3)Performs the fromEuler operation using the provided parameters (value).
fromEuler(float, float, float)Performs the fromEuler operation using the provided parameters (x, y, z).
getQW()Returns the current qw.
getQX()Returns the current qx.
getQY()Returns the current qy.
getQZ()Returns the current qz.
getX()Returns the current x.
getY()Returns the current y.
getZ()Returns the current z.
increment(float, float, float)Performs the increment operation using the provided parameters (eulerX, eulerY, eulerZ).
isNull(Object)Returns whether null is true.
localLookTo(Vector3)Performs the localLookTo operation using the provided parameters (direction).
localLookTo(Vector3, Vector3)Performs the localLookTo operation using the provided parameters (from, to).
lookAt(Vector3, Vector3)Performs the lookAt operation using the provided parameters (from, to).
lookAt(Vector3, Vector3, Vector3)Performs the lookAt operation using the provided parameters (from, to, up).
lookRotation(Vector3)Performs the lookRotation operation using the provided parameters (forward).
lookRotation(Vector3, Vector3)Performs the lookRotation operation using the provided parameters (forward, upwards).
lookTo(Vector3)Performs the lookTo operation using the provided parameters (direction).
lookTo(Vector3, Vector3)Performs the lookTo operation using the provided parameters (from, to).
lookTo(Vector3, Vector3, Vector3)Performs the lookTo operation using the provided parameters (from, to, up).
mul(Object)Performs the mul operation using the provided parameters (otherObject).
mul(Quaternion)Performs the mul operation using the provided parameters (value).
mul(float, float, float, float)Performs the mul operation using the provided parameters (w, x, y, z).
mulEqual(Object)Performs the mulEqual operation using the provided parameters (otherObject).
mulLocal(Quaternion)Performs the mulLocal operation using the provided parameters (value).
mulLocal(float, float, float, float)Performs the mulLocal operation using the provided parameters (w, x, y, z).
multiply(Quaternion)Performs the multiply operation using the provided parameters (value).
multiply(float, float, float, float)Performs the multiply operation using the provided parameters (w, x, y, z).
normalize()Performs the normalize operation.
normalizeLocal()Performs the normalizeLocal operation.
notEquals(Object)Performs the notEquals operation using the provided parameters (otherObject).
pointerEquals(Object)Performs the pointerEquals operation using the provided parameters (otherObject).
rotateVector(Vector3)Transforms or moves vector accordingly.
rotateVector(Vector3, Vector3)Transforms or moves vector accordingly.
selfLookTo(Vector3)Performs the selfLookTo operation using the provided parameters (direction).
selfLookTo(Vector3, Vector3)Performs the selfLookTo operation using the provided parameters (from, to).
serializeToString()Performs the serializeToString operation.
set(Quaternion)Sets or updates the the value.
set(float)Sets or updates the the value.
set(float, float, float, float)Sets or updates the the value.
setFromEuler(Vector3)Sets or updates the from euler.
setFromEuler(float, float, float)Sets or updates the from euler.
setIdentity()Sets or updates the identity.
setQW(float)Sets or updates the qw.
setQX(float)Sets or updates the qx.
setQY(float)Sets or updates the qy.
setQZ(float)Sets or updates the qz.
setX(float)Sets or updates the x.
setY(float)Sets or updates the y.
setZ(float)Sets or updates the z.
slerp(Quaternion, Quaternion, float)Performs the slerp operation using the provided parameters (a, b, t).
slerp(Quaternion, float)Performs the slerp operation using the provided parameters (b, t).
slerpLocal(Quaternion, Quaternion, float)Performs the slerpLocal operation using the provided parameters (a, b, t).
slerpLocal(Quaternion, float)Performs the slerpLocal operation using the provided parameters (b, t).
sum(Quaternion)Performs the sum operation using the provided parameters (value).
sum(float, float, float, float)Performs the sum operation using the provided parameters (w, x, y, z).
sumLocal(Quaternion)Performs the sumLocal operation using the provided parameters (value).
sumLocal(float, float, float, float)Performs the sumLocal operation using the provided parameters (w, x, y, z).
toEuler()Performs the toEuler operation.
zero()Performs the zero operation.