Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            DegreesAngle other = null;

            try{
                other = obj as DegreesAngle;
            }catch (InvalidCastException i) {
                Debug.Log("Cast exception ");
                return(false);
            }

            double otherAngle = other.Get();

            return(degrees > (otherAngle - THRESHOLD) && degrees < (otherAngle + THRESHOLD));
        }
Exemplo n.º 2
0
 public LocalCoords(DegreesAngle az, DegreesAngle alt)
 {
     this.Azimuth  = az;
     this.Altitude = alt;
 }
Exemplo n.º 3
0
 public EquatorialCoords(HourAngle ra, DegreesAngle dec)
 {
     RA          = ra;
     Declination = dec;
 }