Perpendicular Distance Between a Point and a Line
For point $$p$$ and line passing through $$a$$ with direction vector $$\vec d$$:
$$d=\frac{|(\vec p-\vec a)\times\vec d|}{|\vec d|}$$
Usage
- Used as the standard shortest-distance formula from a point to a line.
---