Function

isConvex

(pts: Vec2[]): boolean

Builds the convex hull of a polygon. Note that even if the polygon is already convex, colinear points will be erased.

returns true if the given polygon is convex

since v3001.0

group Math

subgroup Advanced

kaplay logo

Components

Miscalenous