public class TrajectoryState extends Object implements TimeStamped
Constructor and Description |
---|
TrajectoryState(OrbitElementsType type,
AbsoluteDate date,
double[] elements)
Simple constructor.
|
TrajectoryState(OrbitElementsType type,
AbsoluteDate date,
String[] fields,
int first,
List<Unit> units)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
CartesianDerivativesFilter |
getAvailableDerivatives()
Get which derivatives of position are available in this state.
|
AbsoluteDate |
getDate()
Get the date.
|
double[] |
getElements()
Get trajectory elements.
|
OrbitElementsType |
getType()
Get the type of the elements.
|
TimeStampedPVCoordinates |
toCartesian(OneAxisEllipsoid body,
double mu)
Convert to Cartesian coordinates.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
durationFrom
public TrajectoryState(OrbitElementsType type, AbsoluteDate date, String[] fields, int first, List<Unit> units)
type
- type of the elementsdate
- entry datefields
- trajectory elementsfirst
- index of first field to consider when parsingunits
- units to use for parsingpublic TrajectoryState(OrbitElementsType type, AbsoluteDate date, double[] elements)
type
- type of the elementsdate
- entry dateelements
- trajectory elements in SI unitspublic AbsoluteDate getDate()
getDate
in interface TimeStamped
public double[] getElements()
public OrbitElementsType getType()
public CartesianDerivativesFilter getAvailableDerivatives()
public TimeStampedPVCoordinates toCartesian(OneAxisEllipsoid body, double mu)
body
- central body
(may be null if type
is not OrbitElementsType.GEODETIC
)mu
- gravitational parameter in m³/s²Copyright © 2002-2023 CS GROUP. All rights reserved.