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