Class PythonBodyCoordinates
java.lang.Object
gaiasky.util.coord.PythonBodyCoordinates
- All Implemented Interfaces:
IBodyCoordinates
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoneLoading(Object... params) Initializes the coordinates objectgetCopy()Gets a copy of this coordinates object.getEclipticCartesianCoordinates(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.voidupdateReferences(Map<String, com.badlogic.ashley.core.Entity> index) Update the references in this coordinates object with the given index.
-
Constructor Details
-
PythonBodyCoordinates
-
-
Method Details
-
doneLoading
Description copied from interface:IBodyCoordinatesInitializes the coordinates object- Specified by:
doneLoadingin interfaceIBodyCoordinates- Parameters:
params- The parameter objects.
-
getEclipticSphericalCoordinates
Description copied from interface:IBodyCoordinatesReturns the ecliptic coordinates of the body in the out vector for the given date.- Specified by:
getEclipticSphericalCoordinatesin interfaceIBodyCoordinates- 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.- Specified by:
getEclipticCartesianCoordinatesin interfaceIBodyCoordinates- 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.- Specified by:
getEquatorialCartesianCoordinatesin interfaceIBodyCoordinates- 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
Description copied from interface:IBodyCoordinatesUpdate the references in this coordinates object with the given index.- Specified by:
updateReferencesin interfaceIBodyCoordinates- Parameters:
index- The index to use.
-
getCopy
Description copied from interface:IBodyCoordinatesGets a copy of this coordinates object.- Specified by:
getCopyin interfaceIBodyCoordinates- Returns:
- The copy.
-