Package org.orekit.utils
Class ConstantPositionProvider
java.lang.Object
org.orekit.utils.ConstantPositionProvider
- All Implemented Interfaces:
ExtendedPositionProvider,PVCoordinatesProvider
- Direct Known Subclasses:
GeodeticExtendedPositionProvider
Fixed-position (in a given frame) provider. The point might be fictitious.
- Since:
- 14.0
- Author:
- Romain Serra
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstantPositionProvider(Vector3D constantPosition, Frame referenceFrame) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionGetter for constant position in reference frame.getPosition(AbsoluteDate date, Frame frame) Get the position of the body in the selected frame.<T extends CalculusFieldElement<T>>
FieldVector3D<T> getPosition(FieldAbsoluteDate<T> date, Frame frame) Get the position in the selected frame.getPVCoordinates(AbsoluteDate date, Frame frame) Get thePVCoordinatesof the body in the selected frame.<T extends CalculusFieldElement<T>>
TimeStampedFieldPVCoordinates<T> getPVCoordinates(FieldAbsoluteDate<T> date, Frame frame) Get the position-velocity-acceleration in the selected frame.getVelocity(AbsoluteDate date, Frame frame) Get the velocity of the body in the selected frame.<T extends CalculusFieldElement<T>>
FieldVector3D<T> getVelocity(FieldAbsoluteDate<T> date, Frame frame) Get the velocity vector in the selected frame.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.utils.ExtendedPositionProvider
toFieldPVCoordinatesProvider
-
Constructor Details
-
ConstantPositionProvider
Simple constructor.- Parameters:
constantPosition- constant position vector in input framereferenceFrame- frame where constant position is given
-
-
Method Details
-
getConstantPosition
Getter for constant position in reference frame.- Returns:
- position in reference frame
-
getPosition
Get the position of the body in the selected frame.- Specified by:
getPositionin interfacePVCoordinatesProvider- Parameters:
date- current dateframe- the frame where to define the position- Returns:
- position of the body (m and)
-
getPosition
public <T extends CalculusFieldElement<T>> FieldVector3D<T> getPosition(FieldAbsoluteDate<T> date, Frame frame) Get the position in the selected frame.- Specified by:
getPositionin interfaceExtendedPositionProvider- Type Parameters:
T- field type- Parameters:
date- current dateframe- the frame where to define the position- Returns:
- position
-
getVelocity
Get the velocity of the body in the selected frame.- Specified by:
getVelocityin interfaceExtendedPositionProvider- Specified by:
getVelocityin interfacePVCoordinatesProvider- Parameters:
date- current dateframe- the frame where to define the velocity- Returns:
- velocity of the body (m/s)
-
getVelocity
public <T extends CalculusFieldElement<T>> FieldVector3D<T> getVelocity(FieldAbsoluteDate<T> date, Frame frame) Get the velocity vector in the selected frame.- Specified by:
getVelocityin interfaceExtendedPositionProvider- Type Parameters:
T- field type- Parameters:
date- current dateframe- the frame where to define the velocity- Returns:
- velocity
-
getPVCoordinates
Get thePVCoordinatesof the body in the selected frame.- Specified by:
getPVCoordinatesin interfaceExtendedPositionProvider- Specified by:
getPVCoordinatesin interfacePVCoordinatesProvider- Parameters:
date- current dateframe- the frame where to define the position- Returns:
- time-stamped position/velocity of the body (m and m/s)
-
getPVCoordinates
public <T extends CalculusFieldElement<T>> TimeStampedFieldPVCoordinates<T> getPVCoordinates(FieldAbsoluteDate<T> date, Frame frame) Get the position-velocity-acceleration in the selected frame.- Specified by:
getPVCoordinatesin interfaceExtendedPositionProvider- Type Parameters:
T- field type- Parameters:
date- current dateframe- the frame where to define the position- Returns:
- position-velocity-acceleration vector
-