java.lang.Object
de.linusdev.lutils.math.matrix.array.floatn.ABFloatMxN
All Implemented Interfaces:
FloatElements, FloatMxN, Matrix, FloatN, Vector
Direct Known Subclasses:
ABFloat3x3, ABFloat4x4

public abstract class ABFloatMxN extends Object implements FloatMxN
  • Field Details

    • array

      protected final float[] array
  • Constructor Details

    • ABFloatMxN

      public ABFloatMxN()
  • Method Details

    • get

      public float get(int y, int x)
      Specified by:
      get in interface FloatMxN
    • put

      public void put(int y, int x, float value)
      Specified by:
      put in interface FloatMxN
    • get

      public float get(int index)
      Description copied from interface: FloatN
      Get component at position index.
      Specified by:
      get in interface FloatN
      Parameters:
      index - index of the vector component to get
      Returns:
      component value
    • put

      public void put(int index, float value)
      Description copied from interface: FloatN
      Set component at position index to value.
      Specified by:
      put in interface FloatN
      Parameters:
      index - index of the vector component to set
      value - value to set
    • isArrayBacked

      public boolean isArrayBacked()
      Description copied from interface: Matrix
      Whether this matrix is array backed.
      Specified by:
      isArrayBacked in interface Matrix
      Specified by:
      isArrayBacked in interface Vector
      Returns:
      true if this matrix is array backed.
    • isBufferBacked

      public boolean isBufferBacked()
      Description copied from interface: Matrix
      Whether this vector is buffer backed.
      Specified by:
      isBufferBacked in interface Matrix
      Specified by:
      isBufferBacked in interface Vector
      Returns:
      true if this vector is buffer backed.
    • toString

      public String toString()
      Overrides:
      toString in class Object