示例#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));
        }
示例#2
0
 public LocalCoords(DegreesAngle az, DegreesAngle alt)
 {
     this.Azimuth  = az;
     this.Altitude = alt;
 }
示例#3
0
 public EquatorialCoords(HourAngle ra, DegreesAngle dec)
 {
     RA          = ra;
     Declination = dec;
 }