Class FGrowArray


@Generated("") public class FGrowArray extends Object
A float array which can have its size changed
  • Field Details

    • data

      public float[] data
    • length

      public int length
  • Constructor Details

    • FGrowArray

      public FGrowArray(int length)
    • FGrowArray

      public FGrowArray()
  • Method Details

    • length

      public int length()
    • reset

      public void reset()
    • reshape

      public FGrowArray reshape(int length)
      Changes the array's length and doesn't attempt to preserve previous values if a new array is required
      length - New array length
    • growInternal

      public void growInternal(int amount)
      Increases the internal array's length by the specified amount. Previous values are preserved. The length value is not modified since this does not change the 'meaning' of the array, just increases the amount of data which can be stored in it. = new data_type[ data.length + amount ]
      amount - Number of elements added to the internal array's length
    • setTo

      public void setTo(FGrowArray original)
    • add

      public void add(float value)
    • get

      public float get(int index)
    • set

      public void set(int index, float value)
    • free

      public void free()