public class ConstantPVCoordinatesProvider extends Object implements PVCoordinatesProvider
PVCoordinatesProvider
to store the position and the velocity of an object and the
frame used for computation.Constructor and Description |
---|
ConstantPVCoordinatesProvider(PVCoordinates coordinatesIn,
Frame frameIn)
Simple constructor.
|
ConstantPVCoordinatesProvider(Vector3D positionIn,
Frame frameIn)
Builds an instance from the position vector only.
|
Modifier and Type | Method and Description |
---|---|
Frame |
getNativeFrame(AbsoluteDate date)
Get the native frame, i.e.
|
PVCoordinates |
getPVCoordinates(AbsoluteDate date,
Frame frameIn)
Get the
PVCoordinates of the body in the selected frame. |
public ConstantPVCoordinatesProvider(PVCoordinates coordinatesIn, Frame frameIn)
coordinatesIn
- the pv coordinates to storeframeIn
- the frame of used for computationpublic ConstantPVCoordinatesProvider(Vector3D positionIn, Frame frameIn)
positionIn
- the position of the objectframeIn
- the frame of computationpublic PVCoordinates getPVCoordinates(AbsoluteDate date, Frame frameIn) throws PatriusException
PVCoordinatesProvider
PVCoordinates
of the body in the selected frame.getPVCoordinates
in interface PVCoordinatesProvider
date
- current dateframeIn
- the frame where to define the positionPatriusException
- if position cannot be computed in given framepublic Frame getNativeFrame(AbsoluteDate date) throws PatriusException
PVCoordinatesProvider
getNativeFrame
in interface PVCoordinatesProvider
date
- a datePatriusException
- thrown if native frame is undefined or unknownCopyright © 2023 CNES. All rights reserved.