Class VSOP2000
java.lang.Object
gaiasky.util.coord.AbstractOrbitCoordinates
gaiasky.util.coord.vsop2000.VSOP2000
- All Implemented Interfaces:
IBodyCoordinates
This class provides coordinates for a single body. It is initialized with the
VSOP2000 data file for that body.
-
Field Summary
Fields inherited from class AbstractOrbitCoordinates
center, entity, instances, logger, orbitName, owner, periodic, scalingModifier and TypeFieldDescriptionprotected Vector3Dprotected com.badlogic.ashley.core.Entityprotected static final List<AbstractOrbitCoordinates> protected static final Logger.Logprotected Stringprotected com.badlogic.ashley.core.Entityprotected booleanprotected double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEclipticCartesianCoordinates(Instant instant, Vector3Q out) Gets ecliptic cartesian coordinates for the given date.getEclipticSphericalCoordinates(Instant instant, Vector3Q out) Returns the ecliptic coordinates of the body in the out vector for the given date.getEquatorialCartesianCoordinates(Instant instant, Vector3Q out) Gets equatorial cartesian coordinates for the given date.booleanInitializes the data, if needed.voidGets the rectangular heliocentric coordinates (geocentric for the Moon) of the body, in internal units (seeConstants.U_TO_M).voidsetDataFile(String dataFile) static doubletime(double julianDate) Methods inherited from class AbstractOrbitCoordinates
copyParameters, doneLoading, getCopy, getData, getInstance, getInstances, getOrbitName, setCenter, setCenterkm, setCenterpc, setCentre, setOrbitname, setOrbitName, setPeriodic, setScaling, toString, updateOwner, updateReferencesModifier and TypeMethodDescriptionprotected voidvoiddoneLoading(Object... params) Initializes the coordinates objectgetCopy()Gets a copy of this coordinates object.protected PointCloudDatagetData()static <T extends AbstractOrbitCoordinates>
TgetInstance(Class<T> clazz) static List<AbstractOrbitCoordinates> voidsetCenter(double[] center) voidsetCenterkm(double[] center) voidsetCenterpc(double[] center) voidsetCentre(double[] center) voidsetOrbitname(String orbitName) voidsetOrbitName(String orbitName) voidsetPeriodic(Boolean periodic) voidsetScaling(double scaling) toString()protected voidupdateOwner(Map<String, com.badlogic.ashley.core.Entity> index) voidupdateReferences(Map<String, com.badlogic.ashley.core.Entity> index) Update the references in this coordinates object with the given index.
-
Constructor Details
-
VSOP2000
public VSOP2000()
-
-
Method Details
-
setDataFile
-
initialize
public boolean initialize()Initializes the data, if needed.- Returns:
- True if the data is initialized and ready to use. False otherwise.
-
position
Gets the rectangular heliocentric coordinates (geocentric for the Moon) of the body, in internal units (seeConstants.U_TO_M).- Parameters:
date- The date as a JavaInstant.out- The vector to return the result.
-
time
public static double time(double julianDate) -
getEclipticSphericalCoordinates
Description copied from interface:IBodyCoordinatesReturns 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
Description copied from interface:IBodyCoordinatesGets 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
Description copied from interface:IBodyCoordinatesGets 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.
-