public static void RegisterLocation(double latitude, double longitude, double altitude, string celestialBody) { SafetyBubblePosition sbp = new SafetyBubblePosition(latitude, longitude, altitude, celestialBody); if (!positions.Contains(sbp)) { positions.Add(sbp); } }
public override bool Equals(object obj) { if (obj == null) { return(false); } SafetyBubblePosition other = obj as SafetyBubblePosition; return(this.latitude == other.latitude && this.longitude == other.longitude && this.altitude == other.altitude && this.celestialBody == other.celestialBody); }