basically the reciprocal of the original lines gradient is going
to be the gradient for the perpendicular line (remember the signs
should switch). For example if i had a line with the gradient of 3,
then the gradient of the perpendicular line will be -1over3. But if
the line had the gradient of -3, then the line perpendicular to
that line will have the gradient 1over3.