示例#1
0
        public double SquaredDistance(UtmCoord other)
        {
            double de = Easting - other.Easting;
            double dn = Northing - other.Northing;

            return(de * de + dn * dn);
        }
示例#2
0
        public double ManhattanDistance(UtmCoord other)
        {
            double de = Math.Abs(Easting - other.Easting);
            double dn = Math.Abs(Northing - other.Northing);

            return(de + dn);
        }
示例#3
0
        public double Distance(UtmCoord other)
        {
            double de = Easting - other.Easting;
            double dn = Northing - other.Northing;

            return(Math.Sqrt(de * de + dn * dn));
        }
示例#4
0
 public LatLng FromProjection(UtmCoord utm)
 {
     double[] d = FromProjectionToWGS84.MathTransform.Transform(new double[] { utm.Easting, utm.Northing });
     return(new LatLng(d[1], d[0]));
 }