using .net c#, its required to write and supply the source code to get the nearest shoreline (for any water area) from a point in a specific direction and calculate the distance between the given point and the shoreline and the width of the shore line.
1. User input one coordinate P1 and direction in angle degree with the north.
[login to view URL] will find the nearest coordinate P2 on the nearest shore line in the specific direction.
[login to view URL] the coordinate P3 which is on the other side of the water area in the specific direction.
4. calculate the direct length (off-road) between P1 with P2 and P2 with P3