Polygon:addPoint

From GiderosMobile
Revision as of 22:06, 14 November 2026 by MoKaLux (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2015.03.22
Class: Clipper

Description

Appends a vertex to the polygon.

Polygon:addPoint(x,y)

Points are stored in the order they are added; the polygon is implicitly closed (last point to first point) when used by Clipper or by getArea().

Parameters

x: (number) horizontal coordinate, stored as an integer
y: (number) vertical coordinate, stored as an integer