Package gaiasky.util.coord
Class StaticParentRotationCoordinates
java.lang.Object
gaiasky.util.coord.StaticParentRotationCoordinates
- All Implemented Interfaces:
IBodyCoordinates
public class StaticParentRotationCoordinates extends java.lang.Object implements IBodyCoordinates
A position that never changes
-
Constructor Summary
Constructors Constructor Description StaticParentRotationCoordinates() -
Method Summary
Modifier and Type Method Description voiddoneLoading(java.lang.Object... params)Initializes the coordinates objectVector3bgetEclipticCartesianCoordinates(java.time.Instant date, Vector3b out)Gets ecliptic cartesian coordinates for the given date.Vector3bgetEclipticSphericalCoordinates(java.time.Instant date, Vector3b out)Returns the ecliptic coordinates of the body in the out vector for the given date.Vector3bgetEquatorialCartesianCoordinates(java.time.Instant date, Vector3b out)Gets equatorial cartesian coordinates for the given date.OrbitgetOrbitObject()Gets the orbit object of these coordinates, if any.voidsetPosition(double[] position)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
StaticParentRotationCoordinates
public StaticParentRotationCoordinates()
-
-
Method Details
-
doneLoading
public void doneLoading(java.lang.Object... params)Description copied from interface:IBodyCoordinatesInitializes the coordinates object- Specified by:
doneLoadingin interfaceIBodyCoordinates
-
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:
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:IBodyCoordinatesGets ecliptic cartesian coordinates for the given date.- Specified by:
getEclipticCartesianCoordinatesin 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:IBodyCoordinatesGets equatorial cartesian coordinates for the given date.- Specified by:
getEquatorialCartesianCoordinatesin interfaceIBodyCoordinates- Parameters:
date- 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.
-
setPosition
public void setPosition(double[] position) -
getOrbitObject
Description copied from interface:IBodyCoordinatesGets the orbit object of these coordinates, if any.- Specified by:
getOrbitObjectin interfaceIBodyCoordinates- Returns:
-