Get Closest Point to Line Segment
 
 
 

Categories

  • Math > Vector

Description

Calculates the position of the closest point on the line segment bounded by the two specified points.

Ports

Inputs

Point

Position of the point from which to calculate the closest line segment point.

Line Point 1

First segment endpoint.

Line Point 2

Second segment endpoint.

outputs

Result

Position of the point on the line segment closest to the input point.

Distance

Distance to the closest point on the line segment.

Valid

Defines whether the input values are valid. The line segment is well defined only when the two input segment endpoints are not equal. In this case this port returns true.