Public function

Get whether a point is inside of a polygon.

const result = pointInPolygon(myPoint, myPoints)
Signature
function pointInPolygon(A: VecLike, points: VecLike[]): boolean
Parameters
NameDescription

A

VecLike

points

VecLike[]
Returns
boolean
References

VecLike

Source

packages/editor/src/lib/primitives/utils.ts

Point2dPointsSnapIndicator