I have added another picture for better understanding. I haven't written any code as of now. My requirement is to calculate the distance from given point (pinned location in above map) to given degrees i.e. 295.5,303.75 and 315.25. There is another white line on map which is lee zone line. I don't have destination point too i.e. points marked in blue color on map. These are intersection points of red line and white line.
My understanding is I have draw a polyline from pinned point in given degree and then get the intersection point i.e. blue circle. Then use this intersection point is as destination point. After that I can easily find out distance from pinned point to this destination point. But I'm not sure if I'm going right direction or not.