class nape.geom.GeomVertexIterator

Available on all platforms

Haxe compatible iterator over vertices of GeomPoly. *

* Vec2's intrinsically tied to the vertices are exposed through * the iterator which does not modify the state of the polygon.

Instance Fields

function new():Void

@private

function hasNext():Bool

Check if there are any vertices remaining. * *

returns

True if there are more vertices to iterate over.

function next():Vec2

Return next vertex in list. *

* The vertex is represented by an intrinsically linked Vec2 * unique to that vertex, which cannot be diposed of. * *

returns

The next vertex in iteration.