Polygon:addPoint

From GiderosMobile
Revision as of 03:41, 14 November 2026 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2015.03.22<br/> '''Class:''' Clipper<br/> === Description === Appends a vertex to the polygon. <syntaxhighlight lang="lua"> Polyg...")
(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