All Implemented Interfaces:
FloatElements, FloatN, Vector, MemorySizeable, NativeParsable
Direct Known Subclasses:
BBFloat1, BBFloat2, BBFloat3, BBFloat4

public abstract class BBFloatN extends BBVector implements FloatN
  • Field Details

  • Constructor Details

    • BBFloatN

      public BBFloatN(boolean allocateBuffer)
  • Method Details

    • useBuffer

      protected 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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