コード例 #1
0
 /// <summary>
 /// Initialise a mount coordinate with Ra/Dec strings and axis positions in radians.
 /// </summary>
 /// <param name="altAz">The AltAzimuth coordinate for the mount</param>
 /// <param name="suggested">The suggested position for the axes (e.g. via a star catalogue lookup)</param>
 /// <param name="localTime">The local time of the observation</param>
 public MountCoordinate(string ra, string dec, IntegerPair axisPosition, Transform transform, double localJulianTimeUTC) : this(new EquatorialCoordinate(ra, dec))
 {
     _Equatorial        = new EquatorialCoordinate(ra, dec);
     _AltAzimuth        = this.GetAltAzimuth(transform, localJulianTimeUTC);
     _AxesPosition      = axisPosition;
     _AxisJulianTimeUTC = localJulianTimeUTC;
     _MasterCoordinate  = MasterCoordinateEnum.Equatorial;
 }
コード例 #2
0
        public void Refresh(EquatorialCoordinate equatorial, IntegerPair axisPosition, Transform transform, double localJulianTimeUTC)
        {
            _Equatorial.RightAscension.Value = equatorial.RightAscension.Value;
            _Equatorial.Declination.Value    = equatorial.Declination.Value;
            _AxesPosition = axisPosition;

            _LocalJulianTimeUTC = localJulianTimeUTC;
            RefreshAltAzimuth(transform, localJulianTimeUTC);
            _MasterCoordinate = MasterCoordinateEnum.Equatorial;
        }
コード例 #3
0
 /// <summary>
 /// Simple initialisation with an equatorial coordinate
 /// </summary>
 public MountCoordinate(EquatorialCoordinate equatorial)
 {
     _Equatorial       = equatorial;
     _MasterCoordinate = MasterCoordinateEnum.Equatorial;
 }
コード例 #4
0
 /// <summary>
 /// Simple initialisation with an altAzimuth coordinate
 /// </summary>
 public MountCoordinate(AltAzCoordinate altAz)
 {
     _AltAzimuth       = altAz;
     _MasterCoordinate = MasterCoordinateEnum.AltAzimuth;
 }
コード例 #5
0
 /// <summary>
 /// Initialise a mount coordinate with Ra/Dec strings
 /// </summary>
 /// <param name="ra">A right ascension string</param>
 /// <param name="dec">declination string</param>
 /// <param name="localTime">The local time of the observation</param>
 public MountCoordinate(string ra, string dec) : this(new EquatorialCoordinate(ra, dec))
 {
     _MasterCoordinate = MasterCoordinateEnum.Equatorial;
 }