Skip to main content

Quaternion

Complete API reference for Quaternion, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Vector

Component: no


public class Quaternion

Constructors

SignatureDescription
Quaternion(Quaternion)Executes Quaternion and returns after the underlying engine call finishes.
Quaternion()Executes Quaternion and returns after the underlying engine call finishes.
Quaternion(float, float, float, float)Creates a new instance of Quaternion.

Attributes

NameTypeDescription
instanceQuaternionRepresents the instance value stored on this instance. Read or assign to update the property.

Virtual Attributes

NameTypeAccessDescription
qwfloatget/setVirtual attribute exposed by getQW. Access it like a field to read or write the underlying value.
qxfloatget/setVirtual attribute exposed by getQX. Access it like a field to read or write the underlying value.
qyfloatget/setVirtual attribute exposed by getQY. Access it like a field to read or write the underlying value.
qzfloatget/setVirtual attribute exposed by getQZ. Access it like a field to read or write the underlying value.
xfloatget/setVirtual attribute exposed by getX. Access it like a field to read or write the underlying value.
yfloatget/setVirtual attribute exposed by getY. Access it like a field to read or write the underlying value.
zfloatget/setVirtual attribute exposed by getZ. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
increment(float, float, float)voidPerforms the increment operation using the provided parameters (eulerX, eulerY, eulerZ).
mul(Quaternion)QuaternionPerforms the mul operation using the provided parameters (value).
mul(float, float, float, float)QuaternionPerforms the mul operation using the provided parameters (w, x, y, z).
mulLocal(Quaternion)voidPerforms the mulLocal operation using the provided parameters (value).
mulLocal(float, float, float, float)voidPerforms the mulLocal operation using the provided parameters (w, x, y, z).
multiply(Quaternion)QuaternionPerforms the multiply operation using the provided parameters (value).
multiply(float, float, float, float)QuaternionPerforms the multiply operation using the provided parameters (w, x, y, z).
sum(Quaternion)QuaternionPerforms the sum operation using the provided parameters (value).
sum(float, float, float, float)QuaternionPerforms the sum operation using the provided parameters (w, x, y, z).
sumLocal(Quaternion)voidPerforms the sumLocal operation using the provided parameters (value).
sumLocal(float, float, float, float)voidPerforms the sumLocal operation using the provided parameters (w, x, y, z).
add(Quaternion)QuaternionAdds an item to the collection.
add(float, float, float, float)QuaternionAdds an item to the collection.
normalize()QuaternionExecutes normalize and returns after the underlying engine call finishes.
normalizeLocal()voidExecutes normalizeLocal and returns after the underlying engine call finishes.
equals(Quaternion)booleanCompares this instance with another for equality/order.
equals(float, float, float, float)booleanCompares this instance with another for equality/order.
equals(float)booleanCompares this instance with another for equality/order.
blend(Quaternion, float)QuaternionPerforms the blend operation using the provided parameters (quaternion, blend).
blendLocal(Quaternion, float)voidExecutes blendLocal and returns after the underlying engine call finishes.
selfLookTo(Vector3)voidPerforms the selfLookTo operation using the provided parameters (direction).
selfLookTo(Vector3, Vector3)voidPerforms the selfLookTo operation using the provided parameters (from, to).
localLookTo(Vector3)voidPerforms the localLookTo operation using the provided parameters (direction).
localLookTo(Vector3, Vector3)voidPerforms the localLookTo operation using the provided parameters (from, to).
lookTo(Vector3)voidPerforms the lookTo operation using the provided parameters (direction).
lookTo(Vector3, Vector3)voidPerforms the lookTo operation using the provided parameters (from, to).
lookTo(Vector3, Vector3, Vector3)voidPerforms the lookTo operation using the provided parameters (from, to, up).
lookToLocal(Vector3)voidExecutes lookToLocal and returns after the underlying engine call finishes.
lookToLocal(Vector3, Vector3)voidExecutes lookToLocal and returns after the underlying engine call finishes.
lookToLocal(Vector3, boolean, boolean)voidExecutes lookToLocal and returns after the underlying engine call finishes.
lookToLocal(Vector3, Vector3, boolean, boolean)voidExecutes lookToLocal and returns after the underlying engine call finishes.
slerp(Quaternion, float)QuaternionPerforms the slerp operation using the provided parameters (b, t).
slerpLocal(Quaternion, float)voidPerforms the slerpLocal operation using the provided parameters (b, t).
slerpLocal(Quaternion, Quaternion, float)voidPerforms the slerpLocal operation using the provided parameters (a, b, t).
set(Quaternion)voidSets or updates the the value.
set(float, float, float, float)voidSets or updates the the value.
set(float)voidSets or updates the the value.
setIdentity()voidSets or updates the identity.
setFromEuler(float, float, float)voidSets or updates the from euler.
setFromEuler(Vector3)voidSets or updates the from euler.
toEuler()Vector3Executes toEuler and returns after the underlying engine call finishes.
copy()QuaternionReturns a copy of this Quaternion instance.
rotateVector(Vector3)Vector3Transforms or moves vector accordingly.
rotateVector(Vector3, Vector3)Vector3Transforms or moves vector accordingly.
equals(Object)booleanCompares this instance with another for equality/order.
pointerEquals(Object)booleanPerforms the pointerEquals operation using the provided parameters (otherObject).
notEquals(Object)booleanPerforms the notEquals operation using the provided parameters (otherObject).
mul(Object)TPerforms the mul operation using the provided parameters (otherObject).
mulEqual(Object)voidPerforms the mulEqual operation using the provided parameters (otherObject).
serializeToString()StringExecutes serializeToString and returns after the underlying engine call finishes.
deserializeLocal(String)voidPerforms the deserializeLocal operation using the provided parameters (str).

Static Methods

SignatureReturnsDescription
fromEuler(Vector3)QuaternionPerforms the fromEuler operation using the provided parameters (value).
fromEuler(float, float, float)QuaternionPerforms the fromEuler operation using the provided parameters (x, y, z).
createFromEuler(Vector3)QuaternionCreates a new from euler.
createFromEuler(float, float, float)QuaternionCreates a new from euler.
zero()QuaternionExecutes zero and returns after the underlying engine call finishes.
slerp(Quaternion, Quaternion, float)QuaternionPerforms the slerp operation using the provided parameters (a, b, t).
lookAt(Vector3, Vector3)QuaternionPerforms the lookAt operation using the provided parameters (from, to).
lookAt(Vector3, Vector3, Vector3)QuaternionPerforms the lookAt operation using the provided parameters (from, to, up).
angleAxis(float, Vector3)QuaternionPerforms the angleAxis operation using the provided parameters (angle, value).
angleAxis(float, float, float, float)QuaternionPerforms the angleAxis operation using the provided parameters (angle, x, y, z).
lookRotation(Vector3)QuaternionPerforms the lookRotation operation using the provided parameters (forward).
lookRotation(Vector3, Vector3)QuaternionPerforms the lookRotation operation using the provided parameters (forward, upwards).
isNull(Object)booleanReturns whether null is true.