Actual widget output
Interactive geometry calculator

Point to Line Segment Projection Calculator

Enter four segment coordinates and two point coordinates and press the button. This example runs the actual widget in your browser.

Find the nearest segment point

Result

Run the sample inputs to see the native output.