Ejemplo n.º 1
0
 public bool Equals(Longitude other)
 {
     if (other == null) {
         return false;
     }
     return ReferenceEquals(this, other) || GeoComparer.AreEqual(this, other);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
 public static bool AreEqual(Longitude left, Longitude right, GeoComparerPrecision precision)
 {
     double tolerance = GetTolerance(precision);
     return Math.Abs(left.Value - right.Value) < tolerance;
 }
Ejemplo n.º 4
0
 public static bool AreEqual(Longitude left, Longitude right)
 {
     return AreEqual(left, right, DefaultPrecision);
 }