PoolRealArray

    An specifically designed to hold floating-point values (float). Optimized for memory usage, does not fragment the memory.

    Note: This type is passed by value and not by reference.

    • PoolRealArray ( Array from )

    Constructs a new . Optionally, you can pass in a generic that will be converted.



    Appends a at the end of this array.


    • empty ( )

    Returns if the array is empty.


    Inserts a new element at a given position in the array. The position must be valid, or at the end of the array ().


    • void invert ( )

    Appends an element at the end of the array.


    • void remove ( idx )

    Removes an element from the array by index.


    • void resize ( int idx )

    Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size.


    • void set ( idx, float value )

    • size ( )

    Returns the size of the array.