perpendicular distance from point to line

This is for finding the point on the circle with the flow magnitude as
the radius.