java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.RMat44Array
- All Implemented Interfaces:
ConstJoltPhysicsObject,AutoCloseable,Comparable<JoltPhysicsObject>
A fixed-length array of coordinate transforms. (native type:
RMat44[])-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Constructor Details
-
RMat44Array
public RMat44Array(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, <length)- Returns:
- a new JVM object with the pre-existing native object assigned
-
length
public int length()Return the length of the array.- Returns:
- the length (in matrices, >0)
-
set
Store the specified matrix at the specified index.- Parameters:
elementIndex- the index at which to store the matrix (≥0, <length)matrix- the matrix to store (notnull, unaffected)
-