Get Closest Point to Line

 
 
 

Categories

  • Math > Vector

Description

Calculates the position of the closest point on the line passing through the two specified points.

Ports

Inputs

Point

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

Line Point 1

First point through which the line passes.

Line Point 2

Second point through which the line passes.

outputs

Result

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

Distance

Distance to the closest point on the line.

Valid

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