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:

  1. iterators.inext iterator function
  2. PlotIterator self
  3. number always zero

Methods

plotiterator:new (plot, transformer)

Parameters:

  • plot Plot
  • transformer func func(point: Vector2D): any

Returns:

    PlotIterator
generated by LDoc 1.5.0 Last updated 2026-09-20 07:37:32