Checks for the closest point of intersection between a line segment and an array of points, where each pair
of points are converted to line segments for the intersection tests.
If no intersection is found, this function returns null.
If intersection was found, a Vector3 is returned with the following properties:
The x and y components contain the point of the intersection.
The z component contains the closest distance.
Checks for the closest point of intersection between a line segment and an array of points, where each pair of points are converted to line segments for the intersection tests.
If no intersection is found, this function returns
null.If intersection was found, a Vector3 is returned with the following properties:
The
xandycomponents contain the point of the intersection. Thezcomponent contains the closest distance.