Interface Mat44Arg
- All Superinterfaces:
Comparable<ConstJoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
Mat44
Read-only access to a
Mat44. (native type: const Mat44)-
Method Summary
Modifier and TypeMethodDescriptionfloatgetElement(int row, int column) Return the specified element.Convert the rotation to aQuat.booleanTest whether the current matrix is equal to the argument.multiply3x3(Mat44Arg arg) Multiply the current 3x3 matrix by the specified 3x3 matrix.multiply3x3(Vec3Arg vec3Arg) Multiply the 3x3 matrix by the specified vector.multiply3x3Transposed(Vec3Arg vec3Arg) Multiply the transpose of the 3x3 matrix by the specified vector.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, va
-
Method Details
-
getElement
float getElement(int row, int column) Return the specified element. The matrix is unaffected.- Parameters:
row- the zero-origin index of the row (≥0, <4)column- the zero-origin index of the column (≥0, <4)- Returns:
- the element's value
-
getQuaternion
Quat getQuaternion()Convert the rotation to aQuat. The matrix is unaffected.- Returns:
- a new rotation quaternion
-
isEqual
Test whether the current matrix is equal to the argument. The current matrix is unaffected.- Parameters:
m2- the 2nd matrix to test (not null, unaffected)- Returns:
- true if equal, false if unequal
-
multiply3x3
Multiply the current 3x3 matrix by the specified 3x3 matrix. The matrix is unaffected.- Parameters:
arg- the factor (not null, unaffected)- Returns:
- a new matrix
-
multiply3x3
Multiply the 3x3 matrix by the specified vector. The matrix is unaffected.- Parameters:
vec3Arg- the right factor (not null, unaffected)- Returns:
- a new vector
-
multiply3x3Transposed
Multiply the transpose of the 3x3 matrix by the specified vector. The matrix is unaffected.- Parameters:
vec3Arg- the right factor (not null, unaffected)- Returns:
- a new vector
-