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)); }
public EquatorialCoords(HourAngle ra, DegreesAngle dec) { RA = ra; Declination = dec; }