Example #1
0
 /// <summary>
 /// Creates new ecliptical coordinates.
 /// </summary>
 /// <param name="lambda">Ecliptical longitude, in degrees. Measured from the vernal equinox along the ecliptic.</param>
 /// <param name="beta">Ecliptical latitude, in degrees. Positive if north of the ecliptic, negative if south.</param>
 /// <param name="distance">Distance from the Sun, in astronomical units.</param>
 public CrdsEcliptical(DMS lambda, DMS beta, double distance = 0)
 {
     Lambda   = lambda.ToDecimalAngle();
     Beta     = beta.ToDecimalAngle();
     Distance = distance;
 }
Example #2
0
 /// <summary>
 /// Creates a pair of equatorial coordinates with provided values of Right Ascension and Declination.
 /// </summary>
 /// <param name="alpha">Right Ascension value, expressed in hours, minutes and seconds.</param>
 /// <param name="delta">Declination value, expressed in degrees, minutes and seconds.</param>
 public CrdsEquatorial(HMS alpha, DMS delta)
 {
     Alpha = alpha.ToDecimalAngle();
     Delta = delta.ToDecimalAngle();
 }
Example #3
0
 public CrdsGalactical(DMS lon, DMS lat)
 {
     l = lon.ToDecimalAngle();
     b = lat.ToDecimalAngle();
 }
Example #4
0
 public CrdsGeographical(DMS longitude, DMS latitude, double utcOffset = 0, double elevation = 0)
     : this(longitude.ToDecimalAngle(), latitude.ToDecimalAngle(), utcOffset, elevation)
 {
 }
Example #5
0
 public CrdsGeographical(DMS latitude, DMS longitude, double elevation = 0)
 {
     Latitude  = latitude.ToDecimalAngle();
     Longitude = longitude.ToDecimalAngle();
     Elevation = elevation;
 }