Exemplo n.º 1
0
        public double SquaredDistance(UtmCoord other)
        {
            double de = Easting - other.Easting;
            double dn = Northing - other.Northing;

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

            return(de + dn);
        }
Exemplo n.º 3
0
        public double Distance(UtmCoord other)
        {
            double de = Easting - other.Easting;
            double dn = Northing - other.Northing;

            return(Math.Sqrt(de * de + dn * dn));
        }
Exemplo n.º 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]));
 }