Class CalendarAstronomer.Equatorial

  • Enclosing class:
    CalendarAstronomer

    public static final class CalendarAstronomer.Equatorial
    extends java.lang.Object
    Represents the position of an object in the sky relative to the plane of the earth's equator. The Right Ascension specifies the position east or west along the equator, relative to the sun's position at the vernal equinox. The Declination is the position north or south of the equatorial plane.

    Note that Equatorial objects are immutable and cannot be modified once they are constructed. This allows them to be passed and returned by value without worrying about whether other code will modify them.

    See Also:
    CalendarAstronomer.Ecliptic
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double ascension
      The right ascension, in radians.
      double declination
      The declination, in radians.
    • Constructor Summary

      Constructors 
      Constructor Description
      Equatorial​(double asc, double dec)
      Constructs an Equatorial coordinate object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toHmsString()
      Return a string representation of this object with the right ascension measured in hours, minutes, and seconds.
      java.lang.String toString()
      Return a string representation of this object, with the angles measured in degrees.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ascension

        public final double ascension
        The right ascension, in radians. This is the position east or west along the equator relative to the sun's position at the vernal equinox, with positive angles representing East.
      • declination

        public final double declination
        The declination, in radians. This is the position north or south of the equatorial plane, with positive angles representing north.
    • Constructor Detail

      • Equatorial

        public Equatorial​(double asc,
                          double dec)
        Constructs an Equatorial coordinate object.

        Parameters:
        asc - The right ascension, measured in radians.
        dec - The declination, measured in radians.
    • Method Detail

      • toString

        public java.lang.String toString()
        Return a string representation of this object, with the angles measured in degrees.
        Overrides:
        toString in class java.lang.Object
      • toHmsString

        public java.lang.String toHmsString()
        Return a string representation of this object with the right ascension measured in hours, minutes, and seconds.