Documentation of m_xydist


Global Index (all files) (short | long) | Local Index (files in subdir) (short | long)


Function Synopsis

dist = m_xydist(x,y)

Help text

 M_XYDIST Spherical earth distance between points in map projection coordinates.  
   RANGE=M_XYDIST(X,Y) gives the distance in meters between
   successive points in the vectors X and Y which are coordinates
   in the current map projection. This function is useful for finding
   distances between points "picked off" a map, e.g.:

   Example:
   G = GINPUT(2); km_dist = M_XYDIST(G(:,1),G(:,2))/1000;

   See also M_LLDIST

Cross-Reference Information

This function calls This function is called by

Pierre-Michel THEVENY <theveny@dt.insu.cnrs.fr>