Пример #1
0
 public bool Equals(Longitude other)
 {
     if (other == null) {
         return false;
     }
     return ReferenceEquals(this, other) || GeoComparer.AreEqual(this, other);
 }
Пример #2
0
 public Datum(DateTime time, Latitude latitude, Longitude longitude, Length altitude = null, Speed speed = null, Heading heading = null)
 {
     _time = time;
     _location = new GeoPosition(latitude, longitude, altitude);
     _speed = speed;
     _heading = heading;
 }
Пример #3
0
 public static bool AreEqual(Longitude left, Longitude right, GeoComparerPrecision precision)
 {
     double tolerance = GetTolerance(precision);
     return Math.Abs(left.Value - right.Value) < tolerance;
 }
Пример #4
0
 public static bool AreEqual(Longitude left, Longitude right)
 {
     return AreEqual(left, right, DefaultPrecision);
 }