Пример #1
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                Debug.Log("Unequal types");
                return(false);
            }
            HourAngle other = null;

            try{
                other = obj as HourAngle;
            }catch (InvalidCastException i) {
                Debug.Log("Unequal types");
                return(false);
            }

            double otherAngle = other.Get();

            return(hours > (otherAngle - THRESHOLD) && hours < (otherAngle + THRESHOLD));
        }
Пример #2
0
 public EquatorialCoords(HourAngle ra, DegreesAngle dec)
 {
     RA          = ra;
     Declination = dec;
 }