Class VSOP2000

All Implemented Interfaces:
IBodyCoordinates

public class VSOP2000 extends AbstractOrbitCoordinates
This class provides coordinates for a single body. It is initialized with the VSOP2000 data file for that body.
  • Constructor Details

    • VSOP2000

      public VSOP2000()
  • Method Details

    • setDataFile

      public void setDataFile(String dataFile)
    • initialize

      public boolean initialize()
      Initializes the data, if needed.
      Returns:
      True if the data is initialized and ready to use. False otherwise.
    • position

      public void position(Instant date, Vector3b out)
      Gets the rectangular heliocentric coordinates (geocentric for the Moon) of the body, in internal units (see Constants.U_TO_M).
      Parameters:
      date - The date as a Java Instant.
      out - The vector to return the result.
    • time

      public static double time(double julianDate)
    • getEclipticSphericalCoordinates

      public Vector3b getEclipticSphericalCoordinates(Instant instant, Vector3b out)
      Description copied from interface: IBodyCoordinates
      Returns the ecliptic coordinates of the body in the out vector for the given date.
      Parameters:
      instant - The instant.
      out - The out vector with the ecliptic coordinates in internal units.
      Returns:
      The out vector for chaining.
    • getEclipticCartesianCoordinates

      public Vector3b getEclipticCartesianCoordinates(Instant instant, Vector3b out)
      Description copied from interface: IBodyCoordinates
      Gets ecliptic cartesian coordinates for the given date.
      Parameters:
      instant - The instant.
      out - The out vector where the ecliptic cartesian coordinates will be.
      Returns:
      The out vector for chaining, or null if the date is out of range, in case of non-elliptical orbits such as Gaia.
    • getEquatorialCartesianCoordinates

      public Vector3b getEquatorialCartesianCoordinates(Instant instant, Vector3b out)
      Description copied from interface: IBodyCoordinates
      Gets equatorial cartesian coordinates for the given date.
      Parameters:
      instant - The instant.
      out - The out vector where the equatorial cartesian coordinates will be.
      Returns:
      The out vector for chaining, or null if the date is out of range, in case of non-elliptical orbits such as Gaia.