WOLFRAM NOTEBOOK

WOLFRAM|DEMONSTRATIONS PROJECT

Shortest Distance between a Point and a Line in 2D

parameter λ
find closest point
show OverscriptBox[\(\(OA\)\( \)\), \(\)]
show
OB
show
AB
show
OP
show
PX
show
OX
show normal
column vectors
show equation
show dot product
show distance
size
M
L
This Demonstration shows how the scalar product (dot product) can be used to find the point of shortest distance between a point P and a line. You can modify the line by dragging points A and B.
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.