Polygon:isClockwise

From GiderosMobile
Revision as of 18:13, 14 November 2026 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2015.03.22<br/> '''Class:''' Clipper<br/> === Description === Returns the orientation of the polygon. <syntaxhighlight lang="lua"...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2015.03.22
Class: Clipper

Description

Returns the orientation of the polygon.

(bool) = Polygon:isClockwise()

Return values

Returns (boolean) true if the vertices are clockwise

Example

if poly:isClockwise() then
	poly:reverse()
end