Class RectArray
Class used intermediately by Packings, representing an array of rectangles.
Metamethods
- RectArray:__concat (...)
-
Metamethod.
Parameters:
- ... Two or more RectArray objects.
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?
- index
uint
Rect index, from 1 to