Interface Matrix

All Known Subinterfaces:
Float3x3, Float3xN, Float4x4, Float4xN, FloatMxN
All Known Implementing Classes:
ABFloat3x3, ABFloat4x4, ABFloatMxN, BBFloat3x3, BBFloat4x4, BBFloatMxN

public interface Matrix
MxN Matrix

N: Width of the Matrix
M: Height of the Matrix


parameters of get and put methods:
x: from 0 (inclusive) to N (exclusive)
y: from 0 (inclusive) to M (exclusive)
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    For a NxM Matrix, return M.
    int
    For a NxM Matrix, return N.
    boolean
    Whether this matrix is array backed.
    boolean
    Whether this vector is buffer backed.
    static <M extends Matrix>
    @NotNull String
    toString(M matrix, @NotNull String name, @NotNull Matrix.MatrixGetter<M> getter)
     
  • Method Details

    • toString

      @NotNull static <M extends Matrix> @NotNull String toString(@NotNull M matrix, @NotNull @NotNull String name, @NotNull @NotNull Matrix.MatrixGetter<M> getter)
    • getWidth

      int getWidth()
      For a NxM Matrix, return N.
      Returns:
      width of the matrix
    • getHeight

      int getHeight()
      For a NxM Matrix, return M.
      Returns:
      height of the matrix
    • isArrayBacked

      boolean isArrayBacked()
      Whether this matrix is array backed.
      Returns:
      true if this matrix is array backed.
    • isBufferBacked

      boolean isBufferBacked()
      Whether this vector is buffer backed.
      Returns:
      true if this vector is buffer backed.