Checks for intersection between the two line segments, or a ray and a line segment,
and returns the intersection point as a Vector3, or null if the lines are parallel, or do not intersect.
The z property of the Vector3 contains the intersection distance, which can be used to find
the closest intersecting point from a group of line segments.
Checks for intersection between the two line segments, or a ray and a line segment, and returns the intersection point as a Vector3, or
nullif the lines are parallel, or do not intersect.The
zproperty of the Vector3 contains the intersection distance, which can be used to find the closest intersecting point from a group of line segments.