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
Modifier and Type Method Description void
doneLoading(java.lang.Object... params)
Initializes the coordinates objectVector3b
getEclipticCartesianCoordinates(java.time.Instant date, Vector3b out)
Gets ecliptic cartesian coordinates for the given date.Vector3b
getEclipticSphericalCoordinates(java.time.Instant date, Vector3b out)
Returns the ecliptic coordinates of the body in the out vector for the given date.Vector3b
getEquatorialCartesianCoordinates(java.time.Instant date, Vector3b out)
Gets equatorial cartesian coordinates for the given date.Orbit
getOrbitObject()
Gets the orbit object of these coordinates, if any.void
setEquatorial(double[] equatorial)
Sets equatorial coordinates as a vector of [ra, de, distance]void
setPosition(double[] position)
void
setPositionkm(double[] position)
void
setPositionpc(double[] position)
void
setTransformMatrix(double[] transformMatrix)
void
setTransformName(java.lang.String transformName)
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
StaticCoordinates
public StaticCoordinates()
-
-
Method Details
-
doneLoading
public void doneLoading(java.lang.Object... params)Description copied from interface:IBodyCoordinates
Initializes the coordinates object- Specified by:
doneLoading
in interfaceIBodyCoordinates
-
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:
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) -
setPositionkm
public void setPositionkm(double[] position) -
setPositionpc
public void setPositionpc(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
Description copied from interface:IBodyCoordinates
Gets the orbit object of these coordinates, if any.- Specified by:
getOrbitObject
in interfaceIBodyCoordinates
- Returns:
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-