Ejemplo n.º 1
0
        public static double GetDistance(TimePoint timePoint1, TimePoint timePoint2)
        {
            var pos1 = new UtmPosition(timePoint1.Position.Longitude, timePoint1.Position.Latitude);
            var pos2 = new UtmPosition(timePoint2.Position.Longitude, timePoint2.Position.Latitude);

            if (pos2.Zone != pos1.Zone)
            {
                pos2 = pos2.Transform(pos1.Zone);
            }

            return(Math.Sqrt(Math.Pow(pos1.Easting - pos2.Easting, 2) + Math.Pow(pos1.Northing - pos2.Northing, 2)));
        }
Ejemplo n.º 2
0
 public UtmBounds(UtmPosition pNorthWest, UtmPosition pSouthEast)
 {
     NorthWest = pNorthWest;
     SouthEast = pSouthEast;
 }