Skip to main content

Matrix4

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

Package: JAVARuntime

Category: Vector

Component: no


public class Matrix4

Constructors

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

Attributes

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

Virtual Attributes

NameTypeAccessDescription
rotationJAVARuntime.Quaternionget/setVirtual attribute exposed by getRotation. Access it like a field to read or write the underlying value.
scaleJAVARuntime.Vector3get/setVirtual attribute exposed by getScale. Access it like a field to read or write the underlying value.
translationJAVARuntime.Vector3get/setVirtual attribute exposed by getTranslation. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
mul(Matrix4)Matrix4Performs the mul operation using the provided parameters (value).
mul(Matrix4, Matrix4)voidPerforms the mul operation using the provided parameters (value, out).
inverse()Matrix4Executes inverse and returns after the underlying engine call finishes.
inverse(Matrix4)voidPerforms the inverse operation using the provided parameters (out).
mul(JAVARuntime.Vector3)JAVARuntime.Vector3Performs the mul operation using the provided parameters (vector3).
mul(JAVARuntime.Vector3, JAVARuntime.Vector3)JAVARuntime.Vector3Performs the mul operation using the provided parameters (vector3, out).
mul(float, float, float)JAVARuntime.Vector3Performs the mul operation using the provided parameters (x, y, z).
mul(float, float, float, JAVARuntime.Vector3)JAVARuntime.Vector3Performs the mul operation using the provided parameters (x, y, z, out).
mulNormal(JAVARuntime.Vector3)JAVARuntime.Vector3Performs the mulNormal operation using the provided parameters (vector3).
mulNormal(JAVARuntime.Vector3, JAVARuntime.Vector3)JAVARuntime.Vector3Performs the mulNormal operation using the provided parameters (vector3, out).
mulAcross(JAVARuntime.Vector3)JAVARuntime.Vector3Performs the mulAcross operation using the provided parameters (vector3).
mulAcross(JAVARuntime.Vector3, JAVARuntime.Vector3)JAVARuntime.Vector3Performs the mulAcross operation using the provided parameters (vector3, out).
getTranslation(JAVARuntime.Vector3)JAVARuntime.Vector3Returns the current translation.
setTranslation(float, float, float)voidSets or updates the translation.
getScale(JAVARuntime.Vector3)JAVARuntime.Vector3Returns the current scale.
setScale(float, float, float)voidSets or updates the scale.
getRotation(Quaternion)JAVARuntime.QuaternionReturns the current rotation.
setRotation(float, float, float, float)voidSets or updates the rotation.
set(float[])voidSets or updates the the value.
setTransform(JAVARuntime.Vector3, Quaternion, JAVARuntime.Vector3)voidSets or updates the transform.
toTranslationVector()JAVARuntime.Vector3Executes toTranslationVector and returns after the underlying engine call finishes.
toTranslationVector(JAVARuntime.Vector3)JAVARuntime.Vector3Performs the toTranslationVector operation using the provided parameters (out).
toRotationQuat()JAVARuntime.QuaternionExecutes toRotationQuat and returns after the underlying engine call finishes.
toRotationQuat(Quaternion)JAVARuntime.QuaternionPerforms the toRotationQuat operation using the provided parameters (out).
toScaleVector()JAVARuntime.Vector3Executes toScaleVector and returns after the underlying engine call finishes.
toScaleVector(JAVARuntime.Vector3)JAVARuntime.Vector3Performs the toScaleVector operation using the provided parameters (out).
fillFloatArray(float[])voidPerforms the fillFloatArray operation using the provided parameters (floatArray).
fillFloatArray(float[], boolean)voidPerforms the fillFloatArray operation using the provided parameters (floatArray, columnMajor).