Class AbsolutePVCoordinates
- All Implemented Interfaces:
TimeShiftable<ShiftablePVCoordinatesHolder<AbsolutePVCoordinates>>,TimeStamped,PVCoordinatesProvider,ShiftablePVCoordinatesHolder<AbsolutePVCoordinates>
-
Constructor Summary
ConstructorsConstructorDescriptionAbsolutePVCoordinates(Frame frame, AbsoluteDate date, FieldVector3D<U> p) Builds a AbsolutePVCoordinates triplet from aFieldVector3D<Derivative>.AbsolutePVCoordinates(Frame frame, AbsoluteDate date, Vector3D position, Vector3D velocity) Build from position and velocity.AbsolutePVCoordinates(Frame frame, AbsoluteDate date, Vector3D position, Vector3D velocity, Vector3D acceleration) Build from position, velocity, acceleration.AbsolutePVCoordinates(Frame frame, AbsoluteDate date, PVCoordinates pva) Build from frame, date and PVA coordinates.AbsolutePVCoordinates(Frame frame, TimeStampedPVCoordinates pva) Build from frame and TimeStampedPVCoordinates.AbsolutePVCoordinates(AbsoluteDate date, double a, AbsolutePVCoordinates absPva) Multiplicative constructorAbsolutePVCoordinates(AbsoluteDate date, double a1, AbsolutePVCoordinates absPv1, double a2, AbsolutePVCoordinates absPv2) Linear constructorAbsolutePVCoordinates(AbsoluteDate date, double a1, AbsolutePVCoordinates absPv1, double a2, AbsolutePVCoordinates absPv2, double a3, AbsolutePVCoordinates absPv3) Linear constructorAbsolutePVCoordinates(AbsoluteDate date, double a1, AbsolutePVCoordinates absPv1, double a2, AbsolutePVCoordinates absPv2, double a3, AbsolutePVCoordinates absPv3, double a4, AbsolutePVCoordinates absPv4) Linear constructorAbsolutePVCoordinates(AbsoluteDate date, AbsolutePVCoordinates start, AbsolutePVCoordinates end) Subtractive constructor -
Method Summary
Modifier and TypeMethodDescriptionGetter for the acceleration vector.getDate()Get the date.getFrame()Get the frame in which the coordinates are defined.getPosition(AbsoluteDate otherDate, Frame outputFrame) Get the position of the body in the selected frame.Get the TimeStampedPVCoordinates.shiftedBy(double dt) Get a time-shifted state.shiftedBy(TimeOffset dt) Get a time-shifted state.toString()Create a local provider using simply Taylor expansion throughshiftedBy(double).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.orekit.utils.ShiftablePVCoordinatesHolder
getPosition, getPosition, getPVCoordinates, getPVCoordinates, getVelocity, getVelocity, getVelocityMethods inherited from interface org.orekit.time.TimeStamped
durationFrom
-
Constructor Details
-
AbsolutePVCoordinates
public AbsolutePVCoordinates(Frame frame, AbsoluteDate date, Vector3D position, Vector3D velocity, Vector3D acceleration) Build from position, velocity, acceleration.- Parameters:
frame- the frame in which the coordinates are defineddate- coordinates dateposition- the position vector (m)velocity- the velocity vector (m/s)acceleration- the acceleration vector (m/sÂý)
-
AbsolutePVCoordinates
Build from position and velocity. Acceleration is set to zero.- Parameters:
frame- the frame in which the coordinates are defineddate- coordinates dateposition- the position vector (m)velocity- the velocity vector (m/s)
-
AbsolutePVCoordinates
Build from frame, date and PVA coordinates.- Parameters:
frame- the frame in which the coordinates are defineddate- date of the coordinatespva- TimeStampedPVCoordinates
-
AbsolutePVCoordinates
Build from frame and TimeStampedPVCoordinates.- Parameters:
frame- the frame in which the coordinates are definedpva- TimeStampedPVCoordinates
-
AbsolutePVCoordinates
Multiplicative constructorBuild a AbsolutePVCoordinates from another one and a scale factor.
The TimeStampedPVCoordinates built will be a * AbsPva
- Parameters:
date- date of the built coordinatesa- scale factorabsPva- base (unscaled) AbsolutePVCoordinates
-
AbsolutePVCoordinates
public AbsolutePVCoordinates(AbsoluteDate date, AbsolutePVCoordinates start, AbsolutePVCoordinates end) Subtractive constructorBuild a relative AbsolutePVCoordinates from a start and an end position.
The AbsolutePVCoordinates built will be end - start.
In case start and end use two different pseudo-inertial frames, the new AbsolutePVCoordinates arbitrarily be defined in the start frame.
- Parameters:
date- date of the built coordinatesstart- Starting AbsolutePVCoordinatesend- ending AbsolutePVCoordinates
-
AbsolutePVCoordinates
public AbsolutePVCoordinates(AbsoluteDate date, double a1, AbsolutePVCoordinates absPv1, double a2, AbsolutePVCoordinates absPv2) Linear constructorBuild a AbsolutePVCoordinates from two other ones and corresponding scale factors.
The AbsolutePVCoordinates built will be a1 * u1 + a2 * u2
In case the AbsolutePVCoordinates use different pseudo-inertial frames, the new AbsolutePVCoordinates arbitrarily be defined in the first frame.
- Parameters:
date- date of the built coordinatesa1- first scale factorabsPv1- first base (unscaled) AbsolutePVCoordinatesa2- second scale factorabsPv2- second base (unscaled) AbsolutePVCoordinates
-
AbsolutePVCoordinates
public AbsolutePVCoordinates(AbsoluteDate date, double a1, AbsolutePVCoordinates absPv1, double a2, AbsolutePVCoordinates absPv2, double a3, AbsolutePVCoordinates absPv3) Linear constructorBuild a AbsolutePVCoordinates from three other ones and corresponding scale factors.
The AbsolutePVCoordinates built will be a1 * u1 + a2 * u2 + a3 * u3
In case the AbsolutePVCoordinates use different pseudo-inertial frames, the new AbsolutePVCoordinates arbitrarily be defined in the first frame.
- Parameters:
date- date of the built coordinatesa1- first scale factorabsPv1- first base (unscaled) AbsolutePVCoordinatesa2- second scale factorabsPv2- second base (unscaled) AbsolutePVCoordinatesa3- third scale factorabsPv3- third base (unscaled) AbsolutePVCoordinates
-
AbsolutePVCoordinates
public AbsolutePVCoordinates(AbsoluteDate date, double a1, AbsolutePVCoordinates absPv1, double a2, AbsolutePVCoordinates absPv2, double a3, AbsolutePVCoordinates absPv3, double a4, AbsolutePVCoordinates absPv4) Linear constructorBuild a AbsolutePVCoordinates from four other ones and corresponding scale factors.
The AbsolutePVCoordinates built will be a1 * u1 + a2 * u2 + a3 * u3 + a4 * u4
In case the AbsolutePVCoordinates use different pseudo-inertial frames, the new AbsolutePVCoordinates arbitrarily be defined in the first frame.
- Parameters:
date- date of the built coordinatesa1- first scale factorabsPv1- first base (unscaled) AbsolutePVCoordinatesa2- second scale factorabsPv2- second base (unscaled) AbsolutePVCoordinatesa3- third scale factorabsPv3- third base (unscaled) AbsolutePVCoordinatesa4- fourth scale factorabsPv4- fourth base (unscaled) AbsolutePVCoordinates
-
AbsolutePVCoordinates
Builds a AbsolutePVCoordinates triplet from aFieldVector3D<Derivative>.The vector components must have time as their only derivation parameter and have consistent derivation orders.
- Type Parameters:
U- type of the derivative- Parameters:
frame- the frame in which the parameters are defineddate- date of the built coordinatesp- vector with time-derivatives embedded within the coordinates
-
-
Method Details
-
shiftedBy
Get a time-shifted state.The state can be slightly shifted to close dates. This shift is based on a simple Taylor expansion. It is not intended as a replacement for proper orbit propagation (it is not even Keplerian!) but should be sufficient for either small time shifts or coarse accuracy.
- Specified by:
shiftedByin interfaceTimeShiftable<ShiftablePVCoordinatesHolder<AbsolutePVCoordinates>>- Parameters:
dt- time shift in seconds- Returns:
- a new state, shifted with respect to the instance (which is immutable)
-
shiftedBy
Get a time-shifted state.The state can be slightly shifted to close dates. This shift is based on a simple Taylor expansion. It is not intended as a replacement for proper orbit propagation (it is not even Keplerian!) but should be sufficient for either small time shifts or coarse accuracy.
- Specified by:
shiftedByin interfaceTimeShiftable<ShiftablePVCoordinatesHolder<AbsolutePVCoordinates>>- Parameters:
dt- time shift in seconds- Returns:
- a new state, shifted with respect to the instance (which is immutable)
- Since:
- 13.0
-
toTaylorProvider
Create a local provider using simply Taylor expansion throughshiftedBy(double).The time evolution is based on a simple Taylor expansion. It is not intended as a replacement for proper orbit propagation (it is not even Keplerian!) but should be sufficient for either small time shifts or coarse accuracy.
- Returns:
- provider based on Taylor expansion, for small time shifts around instance date
-
getFrame
Get the frame in which the coordinates are defined.- Specified by:
getFramein interfaceShiftablePVCoordinatesHolder<AbsolutePVCoordinates>- Returns:
- frame in which the coordinates are defined
-
getDate
Get the date.- Specified by:
getDatein interfaceTimeStamped- Returns:
- date attached to the object
-
getPVCoordinates
Get the TimeStampedPVCoordinates.- Specified by:
getPVCoordinatesin interfaceShiftablePVCoordinatesHolder<AbsolutePVCoordinates>- Returns:
- TimeStampedPVCoordinates
-
getAcceleration
Getter for the acceleration vector.- Returns:
- acceleration
-
getPosition
Get the position of the body in the selected frame.- Specified by:
getPositionin interfacePVCoordinatesProvider- Specified by:
getPositionin interfaceShiftablePVCoordinatesHolder<AbsolutePVCoordinates>- Parameters:
otherDate- current dateoutputFrame- the frame where to define the position- Returns:
- position of the body (m and)
-
toString
-