|
Terrenus HRPT v2.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectterrenus.orbit.SpacecraftLocator
public class SpacecraftLocator
The SpacecraftLocator
class models a spacecraft
position and velocity relative to a WGS 72 earth model.
Constructor Summary | |
---|---|
SpacecraftLocator(int id,
java.util.Date date)
Creates a new spacecraft using its NORAD orbital element ID. |
|
SpacecraftLocator(java.lang.String line1,
java.lang.String line2)
Creates a new spacecraft from a set of two-line orbital elements. |
Method Summary | |
---|---|
java.util.Date |
getEpoch()
Gets the orbital element epoch used to initialize this locator. |
double |
getHourAngle()
Gets the Greenwich hour angle. |
double[] |
getPosition(double[] output)
Gets the position of the spacecraft in earth-centered inertial coordinates. |
double[] |
getVelocity(double[] output)
Gets the velocity of the spacecraft in earth-centered inertial coordinates. |
boolean |
isWithinTolerance(java.util.Date date)
Determines if a date is within tolerance based on the orbtial element epoch used to create this locator. |
void |
setDate(java.util.Date date)
Sets the date object and performs the spacecraft position and velocity computation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpacecraftLocator(java.lang.String line1, java.lang.String line2)
line1
- two-line orbital element line 1.line2
- two-line orbital element line 2.public SpacecraftLocator(int id, java.util.Date date)
id
- the NORAD orbital element ID.date
- the date for orbital element retrieval.Method Detail |
---|
public java.util.Date getEpoch()
public boolean isWithinTolerance(java.util.Date date)
date
- the date to check.
public double getHourAngle()
public void setDate(java.util.Date date)
getPosition(double[])
or getVelocity(double[])
.
date
- the date for the spacecraft computations.public double[] getPosition(double[] output)
output
- the output position array to fill. If null, an
output array is created.
public double[] getVelocity(double[] output)
output
- the output velocity array to fill. If null, an
output array is created.
|
Terrenus HRPT v2.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |