Package gaiasky.util.coord
Interface IBodyCoordinates
- All Known Implementing Classes:
AbstractOrbitCoordinates,AbstractVSOP87,DummyVSOP87,EarthVSOP87,GaiaCoordinates,JupiterVSOP87,MarsVSOP87,MercuryVSOP87,MoonAACoordinates,NeptuneVSOP87,OrbitLintCoordinates,PlutoCoordinates,SaturnVSOP87,StaticCoordinates,StaticParentRotationCoordinates,UranusVSOP87,VenusVSOP87
public interface IBodyCoordinates
Defines the interface to get the coordinates of a body
-
Method Summary
Modifier and Type Method Description voiddoneLoading(java.lang.Object... params)Initializes the coordinates objectVector3bgetEclipticCartesianCoordinates(java.time.Instant instant, Vector3b out)Gets ecliptic cartesian coordinates for the given date.Vector3bgetEclipticSphericalCoordinates(java.time.Instant instant, Vector3b out)Returns the ecliptic coordinates of the body in the out vector for the given date.Vector3bgetEquatorialCartesianCoordinates(java.time.Instant instant, Vector3b out)Gets equatorial cartesian coordinates for the given date.OrbitgetOrbitObject()Gets the orbit object of these coordinates, if any.
-
Method Details
-
doneLoading
void doneLoading(java.lang.Object... params)Initializes the coordinates object- Parameters:
params-
-
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.
-
getOrbitObject
Orbit getOrbitObject()Gets the orbit object of these coordinates, if any.- Returns:
-