public abstract class AbstractOrientationFunction extends Object implements OrientationFunction
Constructor and Description |
---|
AbstractOrientationFunction(AbsoluteDate zeroDate)
Constructor setting a default finite differences differentiator.
|
AbstractOrientationFunction(AbsoluteDate zeroDate,
UnivariateVectorFunctionDifferentiator inDifferentiator) |
Modifier and Type | Method and Description |
---|---|
Vector3D |
computeSpin(AbsoluteDate date)
Estimate the spin at a given date from the current
OrientationFunction using the quaternions formula:
Ω = 2 * Q' dQ, where Q' is the conjugate of the quaternion and dQ is the derivative of the quaternion at
the given date. |
Vector3DFunction |
computeSpinFunction()
Estimate the
Vector3DFunction from the current OrientationFunction using the quaternions formula:
Ω = 2 * Q' dQ, where Q' is the conjugate of the quaternion and dQ is the derivative of the quaternion at
the given date. |
OrientationFunction |
derivative()
Compute the
OrientationFunction representing the first derivative of the current orientation function
components. |
Vector3D |
estimateRate(AbsoluteDate date,
double dt)
Estimate the spin at a given date from the current
OrientationFunction using the
AngularCoordinates.estimateRate(Rotation, Rotation, double) method. |
Vector3DFunction |
estimateRateFunction(double dt)
Estimate the
Vector3DFunction from the current OrientationFunction using the
AngularCoordinates.estimateRate(Rotation, Rotation, double) method. |
UnivariateVectorFunctionDifferentiator |
getDifferentiator()
Get the differentiator.
|
abstract Rotation |
getOrientation(AbsoluteDate date)
Get the orientation at a given date.
|
AbsoluteDate |
getZeroDate()
Get the date at x = 0.
|
double[] |
value(double x)
Compute the quaternion components of the orientation at the (zero + x) date.
|
public AbstractOrientationFunction(AbsoluteDate zeroDate)
zeroDate
- the date at x = 0.public AbstractOrientationFunction(AbsoluteDate zeroDate, UnivariateVectorFunctionDifferentiator inDifferentiator)
zeroDate
- the date at x = 0.inDifferentiator
- the differentiation method used to compute the first derivative of the current orientation function
components.public abstract Rotation getOrientation(AbsoluteDate date) throws PatriusException
getOrientation
in interface OrientationFunction
date
- the dateRotation
class.PatriusException
- if rotation cannot be computedpublic final AbsoluteDate getZeroDate()
public final UnivariateVectorFunctionDifferentiator getDifferentiator()
public final double[] value(double x)
value
in interface UnivariateVectorFunction
x
- the time from the date zero for which the function value should be computedPatriusExceptionWrapper
- if problems to compute value (frame transformation, or other)public final Vector3DFunction estimateRateFunction(double dt)
Vector3DFunction
from the current OrientationFunction
using the
AngularCoordinates.estimateRate(Rotation, Rotation, double)
method.estimateRateFunction
in interface OrientationFunction
dt
- time elapsed between the dates of the two orientationspublic final Vector3D estimateRate(AbsoluteDate date, double dt) throws PatriusException
OrientationFunction
using the
AngularCoordinates.estimateRate(Rotation, Rotation, double)
method.date
- the current datedt
- time elapsed between the dates of the two orientationsPatriusException
- if the rate cannot be estimatedpublic final Vector3DFunction computeSpinFunction()
Vector3DFunction
from the current OrientationFunction
using the quaternions formula:
Ω = 2 * Q' dQ, where Q' is the conjugate of the quaternion and dQ is the derivative of the quaternion at
the given date.public final Vector3D computeSpin(AbsoluteDate date) throws PatriusException
OrientationFunction
using the quaternions formula:
Ω = 2 * Q' dQ, where Q' is the conjugate of the quaternion and dQ is the derivative of the quaternion at
the given date.date
- the current datePatriusException
- if the spin cannot be computedpublic OrientationFunction derivative()
OrientationFunction
representing the first derivative of the current orientation function
components.derivative
in interface OrientationFunction
OrientationFunction
containing the first derivative of the orientation function components.Copyright © 2019 CNES. All rights reserved.