To calculate the shortest distance from a point to a line, we make use of the area of triangle trigo formula. Let say we have a triangle ABC with side of length a, b and c. If ∠CAB=θ and the shortest distance from point A to the line BC is d:
\[
\begin{align*}
area\mathrm{\ of\ } △&=\frac{1}{2}×c×d\\
\frac{1}{2}×𝑎×𝑏×sin𝜃&=\frac{1}{2}×c×d\\
d&=\frac{𝑎×𝑏×sin𝜃}{c}\\
\end{align*}
\]