www.gusucode.com > map 案例源码 matlab代码程序 > map/CalculateIntersectionOfRhumbLineTracksExample.m

    %% 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 <docid:map_ug.f7-12659>. 

% Copyright 2015 The MathWorks, Inc.

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