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

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

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

      public void set(int elementIndex, Mat44Arg matrix)
      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)