java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.RMat44Array
All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public class RMat44Array extends JoltPhysicsObject
A fixed-length array of coordinate transforms. (native type: RMat44[])
  • 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

      public RMat44 get(int elementIndex)
      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

      public void set(int elementIndex, RMat44Arg matrix)
      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 (not null, unaffected)