예제 #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]));
 }