public class PosVelChebyshev extends Object implements TimeStamped, Serializable
This class represent the most basic element of the piecewise ephemerides for solar system bodies like JPL DE 405 ephemerides.
JPLEphemeridesLoader
,
Serialized FormConstructor and Description |
---|
PosVelChebyshev(AbsoluteDate startIn,
double durationIn,
double[] xCoeffsIn,
double[] yCoeffsIn,
double[] zCoeffsIn)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
AbsoluteDate |
getDate()
Get the date.
|
PVCoordinates |
getPositionVelocity(AbsoluteDate date)
Get the position-velocity at a specified date.
|
double |
getValidityDuration()
Get model validity duration.
|
boolean |
inRange(AbsoluteDate date)
Check if a date is in validity range.
|
boolean |
isSuccessorOf(PosVelChebyshev predecessor)
Check if the instance is the exact successor of another model.
|
public PosVelChebyshev(AbsoluteDate startIn, double durationIn, double[] xCoeffsIn, double[] yCoeffsIn, double[] zCoeffsIn)
startIn
- start of the validity range of the instancedurationIn
- duration of the validity range of the instancexCoeffsIn
- Chebyshev polynomials coefficients for the X component
(a reference to the array will be stored in the instance)yCoeffsIn
- Chebyshev polynomials coefficients for the Y component
(a reference to the array will be stored in the instance)zCoeffsIn
- Chebyshev polynomials coefficients for the Z component
(a reference to the array will be stored in the instance)public AbsoluteDate getDate()
getDate
in interface TimeStamped
public double getValidityDuration()
public boolean isSuccessorOf(PosVelChebyshev predecessor)
The instance is the successor of another model if its start date is within a 1ms tolerance interval of the end date of the other model.
predecessor
- model to check instance againstpublic boolean inRange(AbsoluteDate date)
date
- date to checkpublic PVCoordinates getPositionVelocity(AbsoluteDate date)
date
- date at which position-velocity is requestedCopyright © 2019 CNES. All rights reserved.