Package gaiasky.util.coord
Class StaticCoordinates
java.lang.Object
gaiasky.util.coord.StaticCoordinates
- All Implemented Interfaces:
IBodyCoordinates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 date, Vector3b out) Gets equatorial cartesian coordinates for the given date.void
setEquatorial
(double[] equatorial) Sets equatorial coordinates as a vector of [ra, de, distance]void
setPosition
(double[] position) void
setPosition
(Vector3b pos) void
setPositionEcliptic
(double[] position) void
setPositionEquatorial
(double[] position) void
setPositionGalactic
(double[] position) void
setPositionkm
(double[] position) void
setPositionKm
(double[] position) void
setPositionpc
(double[] position) void
setPositionPc
(double[] position) void
setTransformFunction
(String transformName) void
setTransformMatrix
(double[] transformMatrix) void
setTransformName
(String transformName) toString()
-
Constructor Details
-
StaticCoordinates
public StaticCoordinates()
-
-
Method Details
-
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:
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.
-
setTransformFunction
-
setTransformName
-
setTransformMatrix
public void setTransformMatrix(double[] transformMatrix) -
getPosition
-
setPosition
-
setPosition
public void setPosition(double[] position) -
setPositionKm
public void setPositionKm(double[] position) -
setPositionkm
public void setPositionkm(double[] position) -
setPositionEquatorial
public void setPositionEquatorial(double[] position) -
setPositionGalactic
public void setPositionGalactic(double[] position) -
setPositionEcliptic
public void setPositionEcliptic(double[] position) -
setPositionPc
public void setPositionPc(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
-
toString
-