Main Content

Calculate Intersection of Rhumb Line Tracks

This example shows how to calculate the intersection of rhumb lines using the rhxrh function.

Calculate the intersection of two rhumb lines. One line starts at latitude 37 degrees North and longitude 76 degrees West and continues due-east at 90 degrees. The other line starts at latitude 15 degrees North and longitude 17 degrees West and continues on a north-west track. To see an illustration of this example, see Vector Intersections.

[lat,long] = rhxrh(37,-76,90,15,-17,315)
lat = 37.0000
long = -41.7028