예제 #1
0
 public EquatorialCoordinate(HourAngle rightAscension, Angle declination)  // , Angle longitude, DateTime observedTime)
 {
     if (rightAscension.Value < 0 || rightAscension.Value > 24.0)
     {
         throw new ArgumentOutOfRangeException(RIGHTASCENSION_RANGE_ERROR);
     }
     if (declination.Value < -90 || declination.Value > 90)
     {
         throw new ArgumentOutOfRangeException(DECLINATION_RANGE_ERROR);
     }
     RightAscension = rightAscension;
     Declination    = declination;
 }
예제 #2
0
 public EquatorialCoordinate() // , double longitude, DateTime observedTime)
 {
     RightAscension = new HourAngle(0.0);
     Declination    = new Angle(0.0);
 }