Package gaiasky.util.coord
Class SpacecraftCoordinates
java.lang.Object
gaiasky.util.coord.SpacecraftCoordinates
- All Implemented Interfaces:
IBodyCoordinates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomputePosition
(double dt, IFocus closest, double currentEnginePower, Vector3d thrust, Vector3d direction, Vector3d force, Vector3d accel, Vector3d vel, Vector3b posb) void
doneLoading
(Object... params) Initializes the coordinates objectgetEclipticCartesianCoordinates
(Instant date, Vector3b out) Gets ecliptic cartesian coordinates for the given date.getEclipticSphericalCoordinates
(Instant date, 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
-
Constructor Details
-
SpacecraftCoordinates
public SpacecraftCoordinates()
-
-
Method Details
-
setSpacecraft
-
doneLoading
Description copied from interface:IBodyCoordinates
Initializes the coordinates object- Specified by:
doneLoading
in interfaceIBodyCoordinates
- Parameters:
params
- The parameter objects.
-
getEclipticSphericalCoordinates
Description copied from interface:IBodyCoordinates
Returns the ecliptic coordinates of the body in the out vector for the given date.- Specified by:
getEclipticSphericalCoordinates
in interfaceIBodyCoordinates
- Parameters:
date
- The instant.out
- The out vector with the ecliptic coordinates in internal units.- Returns:
- The out vector for chaining.
-
getEclipticCartesianCoordinates
Description copied from interface:IBodyCoordinates
Gets ecliptic cartesian coordinates for the given date.- Specified by:
getEclipticCartesianCoordinates
in interfaceIBodyCoordinates
- Parameters:
date
- 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:IBodyCoordinates
Gets equatorial cartesian coordinates for the given date.- Specified by:
getEquatorialCartesianCoordinates
in 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.
-
computePosition
-