Package gaiasky.util.coord
Interface IBodyCoordinates
- All Known Implementing Classes:
AbstractOrbitCoordinates
,AbstractVSOP87
,ChebyshevEphemeris
,ComposedTimedOrbitCoordinates
,DummyVSOP87
,EarthVSOP87
,HeliotropicOrbitCoordinates
,JupiterVSOP87
,MarsVSOP87
,MercuryVSOP87
,MoonAACoordinates
,MoonVSOP87
,NeptuneVSOP87
,OrbitLintCoordinates
,PlutoCoordinates
,PythonBodyCoordinates
,SaturnVSOP87
,SpacecraftCoordinates
,StaticCoordinates
,TimedOrbitCoordinates
,UranusVSOP87
,VenusVSOP87
,VSOP2000
public interface IBodyCoordinates
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doneLoading
(Object... params) Initializes the coordinates objectgetCopy()
Gets a copy of this coordinates object.getEclipticCartesianCoordinates
(Instant instant, Vector3b out) Gets ecliptic cartesian coordinates for the given date.getEclipticSphericalCoordinates
(Instant instant, Vector3b out) Returns the ecliptic coordinates of the body in the out vector for the given date.getEquatorialCartesianCoordinates
(Instant instant, Vector3b out) Gets equatorial cartesian coordinates for the given date.void
updateReferences
(Map<String, com.badlogic.ashley.core.Entity> index) Update the references in this coordinates object with the given index.
-
Method Details
-
doneLoading
Initializes the coordinates object- Parameters:
params
- The parameter objects.
-
getEclipticSphericalCoordinates
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
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
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.
-
updateReferences
Update the references in this coordinates object with the given index.- Parameters:
index
- The index to use.
-
getCopy
IBodyCoordinates getCopy()Gets a copy of this coordinates object.- Returns:
- The copy.
-