Class PlotIterator
Tables
| plotiterator.instance |
Metamethods
| plotiterator:__index (index) | ⚠️. |
| plotiterator:__ipairs () | ⚠️. |
Methods
| plotiterator:new (plot, transformer) |
Tables
- plotiterator.instance
-
Fields:
- _plot Plot
- _transformer func func(point: Vector2D): any
Metamethods
- plotiterator:__index (index)
-
⚠️. It supports direct access to transformed plot points
and is used for iterating over them in Lua 5.3+.
Parameters:
- index number [1, ∞)
Returns:
-
any
transformed point, or nil when the index is out of range
- plotiterator:__ipairs ()
-
⚠️. It is used for iterating over plot points in Lua 5.2.
Returns:
- iterators.inext iterator function
- PlotIterator self
- number always zero
Methods
- plotiterator:new (plot, transformer)
-
Parameters:
- plot Plot
- transformer func func(point: Vector2D): any
Returns: