MotionScript

@motion-script/core


@motion-script/core / nearPolyline

Function: nearPolyline()

nearPolyline(p, pts, closed, tolerance): boolean

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

Whether p is within tolerance of any segment of the polyline.

Parameters

p

Vector2

pts

readonly Vector2[]

closed

boolean

tolerance

number

Returns

boolean