Package org.orekit.utils
Class ConstantPVCoordinatesProvider
- java.lang.Object
-
- org.orekit.utils.ConstantPVCoordinatesProvider
-
- All Implemented Interfaces:
PVCoordinatesProvider
public class ConstantPVCoordinatesProvider extends Object implements PVCoordinatesProvider
Provider based on a single point. WhengetPVCoordinates(AbsoluteDate, Frame)is called, the constant point will be translated to the destination frame and returned. This behavior is different thanAbsolutePVCoordinates.getPVCoordinates(AbsoluteDate, Frame)(which usesshiftedBy()internally.). Use this class when no shifting should be performed (e.g. representing a fixed point on the ground).- Since:
- 11.3
- Author:
- Joe Reed
-
-
Constructor Summary
Constructors Constructor Description ConstantPVCoordinatesProvider(Vector3D pos, Frame frame)Create the PVCoordinatesProvider from a fixed point in a frame.ConstantPVCoordinatesProvider(GeodeticPoint pos, OneAxisEllipsoid body)Create a the provider from a fixed lat/lon/alt on a central body.ConstantPVCoordinatesProvider(PVCoordinates pva, Frame frame)Create the PVCoordinatesProvider from a fixed point in a frame.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector3DgetPosition(AbsoluteDate date, Frame frame)Get the position of the body in the selected frame.TimeStampedPVCoordinatesgetPVCoordinates(AbsoluteDate date, Frame frame)Get thePVCoordinatesof the body in the selected frame.Vector3DgetVelocity(AbsoluteDate date, Frame frame)Get the velocity of the body in the selected frame.
-
-
-
Constructor Detail
-
ConstantPVCoordinatesProvider
public ConstantPVCoordinatesProvider(Vector3D pos, Frame frame)
Create the PVCoordinatesProvider from a fixed point in a frame.- Parameters:
pos- the fixed position in the frameframe- the frame in whichpvais defined
-
ConstantPVCoordinatesProvider
public ConstantPVCoordinatesProvider(GeodeticPoint pos, OneAxisEllipsoid body)
Create a the provider from a fixed lat/lon/alt on a central body. This method is provided as convienience fornew ConstantPVCoordinatesProvider(body.transform(pos), body.getBodyFrame()).- Parameters:
pos- the position relative to the ellipsoid's surfacebody- the reference ellipsoid
-
ConstantPVCoordinatesProvider
public ConstantPVCoordinatesProvider(PVCoordinates pva, Frame frame)
Create the PVCoordinatesProvider from a fixed point in a frame.- Parameters:
pva- the point in the frameframe- the frame in whichpvais defined
-
-
Method Detail
-
getPosition
public Vector3D getPosition(AbsoluteDate date, Frame frame)
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)
-
getVelocity
public Vector3D getVelocity(AbsoluteDate date, Frame frame)
Get the velocity of the body in the selected frame.- Specified by:
getVelocityin interfacePVCoordinatesProvider- Parameters:
date- current dateframe- the frame where to define the velocity- Returns:
- velocity of the body (m/s)
-
getPVCoordinates
public TimeStampedPVCoordinates getPVCoordinates(AbsoluteDate date, Frame frame)
Get thePVCoordinatesof the body in the selected frame.- 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)
-
-