public double SquaredDistance(UtmCoord other) { double de = Easting - other.Easting; double dn = Northing - other.Northing; return(de * de + dn * dn); }
public double ManhattanDistance(UtmCoord other) { double de = Math.Abs(Easting - other.Easting); double dn = Math.Abs(Northing - other.Northing); return(de + dn); }
public double Distance(UtmCoord other) { double de = Easting - other.Easting; double dn = Northing - other.Northing; return(Math.Sqrt(de * de + dn * dn)); }
public LatLng FromProjection(UtmCoord utm) { double[] d = FromProjectionToWGS84.MathTransform.Transform(new double[] { utm.Easting, utm.Northing }); return(new LatLng(d[1], d[0])); }