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 Link icon

    • VSOP2000 Link icon

      public VSOP2000()
  • Method Details Link icon

    • setDataFile Link icon

      public void setDataFile(String dataFile)
    • initialize Link icon

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

      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 Link icon

      public static double time(double julianDate)
    • getEclipticSphericalCoordinates Link icon

      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 Link icon

      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 Link icon

      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.