Foot Of Perpendicular Formula In 2d