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 TimeStampedPVCoordinates
getPVCoordinates(AbsoluteDate date, Frame frame)
Get thePVCoordinates
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 whichpva
is 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 whichpva
is defined
-
-
Method Detail
-
getPVCoordinates
public TimeStampedPVCoordinates getPVCoordinates(AbsoluteDate date, Frame frame)
Description copied from interface:PVCoordinatesProvider
Get thePVCoordinates
of the body in the selected frame.- Specified by:
getPVCoordinates
in interfacePVCoordinatesProvider
- Parameters:
date
- current dateframe
- the frame where to define the position- Returns:
- time-stamped position/velocity of the body (m and m/s)
-
-