MotionScript

@motion-script/core


@motion-script/core / pointInPolygon

Function: pointInPolygon()

pointInPolygon(p, verts): boolean

Defined in: render/clip-contains.ts:301

Even-odd crossing test against a closed polygon. No tolerance band.

Parameters

p

Vector2

verts

readonly Vector2[]

Returns

boolean