Class RectArray

Class used intermediately by Packings, representing an array of rectangles.

Metamethods

RectArray:__concat (...)
Metamethod.

Parameters:

Returns:

    RectArray The union of the arrays, in order. These are copies, leaving the originals intact.
RectArray:__len ()
Metamethod.

Returns:

    uint Number of rectangles in the array.

Methods

RectArray:Concatenate (other)
Method variant of RectArray:__len.

Parameters:

  • other RectArray Another array to append to this one.

Returns:

    RectArray The union of the arrays, self followed by other. These are copies, leaving the originals intact.
RectArray:WasPacked (index)
Predicate.

Parameters:

  • index uint Rect index, from 1 to #self.

Returns:

    boolean Has the rect been packed?
generated by LDoc 1.4.6 Last updated 2018-09-03 18:10:34