Package gaiasky.util.coord
Class StaticCoordinates
- java.lang.Object
-
- gaiasky.util.coord.StaticCoordinates
-
- All Implemented Interfaces:
IBodyCoordinates
public class StaticCoordinates extends java.lang.Object implements IBodyCoordinates
A position that never changes
-
-
Constructor Summary
Constructors Constructor Description StaticCoordinates()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoneLoading(java.lang.Object... params)Initializes the coordinates objectVector3dgetEclipticCartesianCoordinates(java.time.Instant date, Vector3d out)Gets ecliptic cartesian coordinates for the given date.Vector3dgetEclipticSphericalCoordinates(java.time.Instant date, Vector3d out)Returns the ecliptic coordinates of the body in the out vector for the given date.Vector3dgetEquatorialCartesianCoordinates(java.time.Instant date, Vector3d out)Gets equatorial cartesian coordinates for the given date.OrbitgetOrbitObject()Gets the orbit object of these coordinates, if any.voidsetEquatorial(double[] equatorial)Sets equatorial coordinates as a vector of [ra, de, distance]voidsetPosition(double[] position)voidsetTransformMatrix(double[] transformMatrix)voidsetTransformName(java.lang.String transformName)
-
-
-
Method Detail
-
doneLoading
public void doneLoading(java.lang.Object... params)
Description copied from interface:IBodyCoordinatesInitializes the coordinates object- Specified by:
doneLoadingin interfaceIBodyCoordinates
-
getEclipticSphericalCoordinates
public Vector3d getEclipticSphericalCoordinates(java.time.Instant date, Vector3d out)
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
public Vector3d getEclipticCartesianCoordinates(java.time.Instant date, Vector3d out)
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
public Vector3d getEquatorialCartesianCoordinates(java.time.Instant date, Vector3d out)
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.
-
setTransformName
public void setTransformName(java.lang.String transformName)
-
setTransformMatrix
public void setTransformMatrix(double[] transformMatrix)
-
setPosition
public void setPosition(double[] position)
-
setEquatorial
public void setEquatorial(double[] equatorial)
Sets equatorial coordinates as a vector of [ra, de, distance]- Parameters:
equatorial- Vector with [ra, dec, distance] with angles in degrees and distance in parsecs
-
getOrbitObject
public Orbit getOrbitObject()
Description copied from interface:IBodyCoordinatesGets the orbit object of these coordinates, if any.- Specified by:
getOrbitObjectin interfaceIBodyCoordinates- Returns:
-
-