java.lang.Object
de.linusdev.lutils.struct.abstracts.Structure
de.linusdev.lutils.math.matrix.buffer.floatn.BBFloatMxN
All Implemented Interfaces:
FloatElements, FloatMxN, Matrix, FloatN, Vector, MemorySizeable, NativeParsable
Direct Known Subclasses:
BBFloat3x3, BBFloat4x4

public abstract class BBFloatMxN extends Structure implements FloatMxN
  • Field Details

  • Constructor Details

    • BBFloatMxN

      public BBFloatMxN(boolean allocateBuffer)
  • Method Details

    • useBuffer

      public void useBuffer(@NotNull @NotNull Structure mostParentStructure, int offset)
      Description copied from class: Structure
      Set this Structure to be a child of mostParentStructure.
      Overrides:
      useBuffer in class Structure
      Parameters:
      mostParentStructure - most parental structure
      offset - start of this structure
    • 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
    • getStructure

      @NotNull public @NotNull Structure getStructure()
      Specified by:
      getStructure in interface Vector
      Returns:
      this vector as Structure
    • 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