Package org.orekit.attitudes
Class TabulatedLofOffset
- java.lang.Object
-
- org.orekit.attitudes.TabulatedLofOffset
-
- All Implemented Interfaces:
Serializable
,AttitudeProvider
public class TabulatedLofOffset extends Object implements AttitudeProvider
This class handles an attitude provider interpolating from a predefined table containing offsets from a Local Orbital Frame.Instances of this class are guaranteed to be immutable.
- Since:
- 7.1
- Author:
- Luc Maisonobe
- See Also:
LofOffset
,TabulatedProvider
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TabulatedLofOffset(Frame inertialFrame, LOFType type, List<TimeStampedAngularCoordinates> table, int n, AngularDerivativesFilter filter)
Creates new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends org.hipparchus.RealFieldElement<T>>
FieldAttitude<T>getAttitude(FieldPVCoordinatesProvider<T> pvProv, FieldAbsoluteDate<T> date, Frame frame)
Compute the attitude corresponding to an orbital state.Attitude
getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame)
Compute the attitude corresponding to an orbital state.List<TimeStampedAngularCoordinates>
getTable()
Get an unmodifiable view of the tabulated attitudes.
-
-
-
Constructor Detail
-
TabulatedLofOffset
public TabulatedLofOffset(Frame inertialFrame, LOFType type, List<TimeStampedAngularCoordinates> table, int n, AngularDerivativesFilter filter)
Creates new instance.- Parameters:
inertialFrame
- inertial frame with respect to which orbit should be computedtype
- type of Local Orbital Frametable
- tabulated attitudesn
- number of attitude to use for interpolationfilter
- filter for derivatives from the sample to use in interpolation
-
-
Method Detail
-
getTable
public List<TimeStampedAngularCoordinates> getTable()
Get an unmodifiable view of the tabulated attitudes.- Returns:
- unmodifiable view of the tabulated attitudes
-
getAttitude
public Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame)
Compute the attitude corresponding to an orbital state.- Specified by:
getAttitude
in interfaceAttitudeProvider
- Parameters:
pvProv
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computed- Returns:
- attitude attitude on the specified date and position-velocity state
-
getAttitude
public <T extends org.hipparchus.RealFieldElement<T>> FieldAttitude<T> getAttitude(FieldPVCoordinatesProvider<T> pvProv, FieldAbsoluteDate<T> date, Frame frame)
Compute the attitude corresponding to an orbital state.- Specified by:
getAttitude
in interfaceAttitudeProvider
- Type Parameters:
T
- type of the field elements- Parameters:
pvProv
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computed- Returns:
- attitude attitude on the specified date and position-velocity state
-
-