|
JEphem site tig API Build classes |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jephem.astro.spacetime.Space
Contains static methods used when dealing with space.
Interface SpaceConstants
contains related constants.
Field Summary |
Fields inherited from interface jephem.astro.spacetime.SpaceConstants |
CARTESIAN, COORD_V0, COORD_V1, COORD_V2, COORD_X0, COORD_X1, COORD_X2, COORDGROUP_DELTA_BETA_LAMBDA, COORDGROUP_DIST_ALPHA_DELTA, COORDGROUP_RLB, COORDGROUP_XYZ, FRAME_EC_HELIO_GEOMETRIC, FRAME_ECLIPTIC, FRAME_EQUATORIAL, FRAME_GALACTIC, FRAME_HORIZONTAL_TOPOCENTRIC, FRAME_THEORY, LIGHT_VELOCITY, NB_COORDS, SPHERICAL |
Fields inherited from interface tig.GeneralConstants |
BLANK, FS, LS, NO_SPECIF, SPACE |
Constructor Summary | |
Space()
|
Method Summary | |
static boolean |
containsVelocityCoord(int[] coords)
Tests if the coordinates passed in parameter contain one or more velocity coordinate. |
static int |
getCoord(int coordIndex)
Returns the SpaceConstants 's COORD_XXX constant corresponding to
coordIndex .
|
static int |
getCoordGroup(int frame)
Returns the group of coordinates associated with a frame. |
static java.lang.String[] |
getCoordGroupLabels(int coordGroup)
Returns the labels of position coordinates of a group of coordinates. |
static java.lang.String |
getCoordinateExpressionLabel(int coordExpr)
Returns the English label of a coordinate expression (returns "cartesian" or "spherical"). |
static java.lang.String |
getFrameLabel(int frameIndex)
Returns the English label of a body. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Space()
Method Detail |
public static boolean containsVelocityCoord(int[] coords)
coords
- An array of coordinates expressed with SpaceConstants.COORD_XXX
constants.public static int getCoord(int coordIndex)
SpaceConstants
's COORD_XXX
constant corresponding to
coordIndex
.
coordIndex
does not correspond to a coordinate,
GeneralConstants.NO_SPECIF
is returned.
getCoord(0)
returns SpaceConstants.X0
... etc ...
getCoord(5)
returns SpaceConstants.V2
coordIndex
- An integer between 0 and 5 corresponding to a position or velocity coordinate.public static int getCoordGroup(int frame)
frame
- Concerned frame ; use SpaceConstants
.FRAME_XXX
constants.
frame
;
SpaceConstants
.COORDGROUP_XXX constants are used ;
GeneralConstants.NO_SPECIF
is returned if 'frame' does not correspond
to a valid frame.public static java.lang.String[] getCoordGroupLabels(int coordGroup)
coordGroup
- The concerned group of coordinates ;
use SpaceConstants
.COORDGROUP_XXX constantspublic static java.lang.String getCoordinateExpressionLabel(int coordExpr)
SolarSystemConstants
.CARTESIAN
or SPHERICAL
to designate the coordinate expression.
public static java.lang.String getFrameLabel(int frameIndex)
SolarSystemConstants
constants to designate the body.
|
JEphem site tig API Build classes |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |