java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.Mat44Array
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
A fixed-length array of single-precision coordinate transforms. (native type:
Mat44[]
)-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Constructor Details
-
Mat44Array
public Mat44Array(int length) Instantiate an array with the specified length.- Parameters:
length
- the desired number of matrices (≥0)
-
-
Method Details
-
get
Access the matrix at the specified index.- Parameters:
elementIndex
- the index (≥0)- Returns:
- a new JVM object with the pre-existing native object assigned
-
set
Store the specified matrix at the specified index.- Parameters:
elementIndex
- the index at which to store the matrix (≥0)matrix
- the matrix to store (not null, unaffected)
-