pointNearToLineSegment

Public Function

Get whether a point is within a certain distance from a line segment.

Parameters
NameDescription

A

VecLike

The point to check.

p1

VecLike

The polyline's first point.

p2

VecLike

The polyline's second point.

distance

(optional)

number

The mininum distance that qualifies a hit.

Returns
boolean
References

VecLike

Edit this page
Last edited on 11 May 2023
pointInRectpointNearToPolyline