Package org.orekit.utils
Class FrameAdapter
- java.lang.Object
-
- org.orekit.utils.FrameAdapter
-
- All Implemented Interfaces:
ExtendedPositionProvider
,ExtendedPVCoordinatesProvider
,PVCoordinatesProvider
public class FrameAdapter extends Object implements ExtendedPVCoordinatesProvider
Adapter fromFrame
toExtendedPVCoordinatesProvider
.The moving point is the origin of the adapted frame.
This class is roughly the inverse of
ExtendedPVCoordinatesProviderAdapter
- Since:
- 12.0
- Author:
- Luc Maisonobe
- See Also:
ExtendedPVCoordinatesProviderAdapter
-
-
Constructor Summary
Constructors Constructor Description FrameAdapter(Frame originFrame)
Simple constructor.
-
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.<T extends CalculusFieldElement<T>>
TimeStampedFieldPVCoordinates<T>getPVCoordinates(FieldAbsoluteDate<T> date, Frame frame)
Get theFieldPVCoordinates
of the body in the selected frame.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.utils.ExtendedPositionProvider
toFieldPVCoordinatesProvider
-
Methods inherited from interface org.orekit.utils.ExtendedPVCoordinatesProvider
getPosition
-
Methods inherited from interface org.orekit.utils.PVCoordinatesProvider
getPosition
-
-
-
-
Constructor Detail
-
FrameAdapter
public FrameAdapter(Frame originFrame)
Simple constructor.- Parameters:
originFrame
- frame whose origin coordinates are desired
-
-
Method Detail
-
getPVCoordinates
public TimeStampedPVCoordinates getPVCoordinates(AbsoluteDate date, Frame frame)
Get thePVCoordinates
of the body in the selected frame.- Specified by:
getPVCoordinates
in interfaceExtendedPositionProvider
- 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)
-
getPVCoordinates
public <T extends CalculusFieldElement<T>> TimeStampedFieldPVCoordinates<T> getPVCoordinates(FieldAbsoluteDate<T> date, Frame frame)
Get theFieldPVCoordinates
of the body in the selected frame.- Specified by:
getPVCoordinates
in interfaceExtendedPositionProvider
- Specified by:
getPVCoordinates
in interfaceExtendedPVCoordinatesProvider
- Type Parameters:
T
- type for the field elements- Parameters:
date
- current dateframe
- the frame where to define the position- Returns:
- time-stamped position/velocity of the body (m and m/s)
-
-