Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
            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);
            }