English
@eightkk/vue-weave / core / graphPointInPolygon
Function: graphPointInPolygon()
graphPointInPolygon(
point,polygon):boolean
Defined in: src/core/graphLasso.ts:39
Whether a point lies inside a polygon given by its vertices in order; the polygon is closed implicitly. Uses the even-odd rule, so the overlapping loops of a self-intersecting lasso alternate between inside and outside. A point on an edge or vertex counts as inside. A polygon with fewer than three vertices contains nothing. Throws RangeError for a non-finite coordinate.
Parameters
point
polygon
readonly GraphPoint[]
Returns
boolean