Point to line projection in 2D