java.lang.Object
de.linusdev.lutils.math.vector.array.floatn.ABFloatN
All Implemented Interfaces:
FloatElements, FloatN, Vector
Direct Known Subclasses:
ABFloat1, ABFloat2, ABFloat3, ABFloat4

public abstract class ABFloatN extends Object implements FloatN
  • Field Details

    • array

      protected final float[] array
    • arrayStartIndex

      protected final int arrayStartIndex
  • Constructor Details

    • ABFloatN

      public ABFloatN(float[] array, int arrayStartIndex)
    • ABFloatN

      public ABFloatN(int memberCount)
  • Method Details

    • isArrayBacked

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

      public boolean isBufferBacked()
      Description copied from interface: Vector
      Whether this vector is buffer backed. If this method returns true, Vector.getStructure() will not throw an UnsupportedOperationException.
      Specified by:
      isBufferBacked in interface Vector
      Returns:
      true if this vector is buffer backed.
    • isView

      public boolean isView()
      Description copied from interface: Vector
      Whether this vector is only a view onto another vector.
      Specified by:
      isView in interface Vector
      Returns:
      true if this vector is a view.
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object