Distance from a Point to a Line
For a line passing through point $$a$$ with direction vector $$\vec d$$ and point $$p$$:
$$d=\frac{|\overrightarrow{AP}\times\vec d|}{|\vec d|}$$
Usage
- Used to find the shortest perpendicular distance from a point to a line.