The line defined by two points [x1, y1, z1, x2, y2, z2].
The point [x, y, z].
The output array to store the intersection point.
OptionalrestrictToSegment: boolean = trueWhether to restrict the intersection to the line segment.
True if the computation is successful, false otherwise.
Computes the perpendicular point on a line.