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