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.

Constructor

new()

@private

Variables

zpp_inner:ZPP_GeomVertexIterator

@private

Methods

hasNext():Bool

Check if there are any vertices remaining.

Returns:

True if there are more vertices to iterate over.

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.