public final class GenericTargetDirection extends Object implements ITargetDirection
Constructor and Description |
---|
GenericTargetDirection(PVCoordinatesProvider inTarget)
Build a direction from a target described by its
PVCoordinatesProvider
|
Modifier and Type | Method and Description |
---|---|
Line |
getLine(PVCoordinatesProvider origin,
AbsoluteDate date,
Frame frame)
Provides the line containing the origin (given PV coordinates) and directed by the direction vector.
|
PVCoordinates |
getTargetPVCoordinates(AbsoluteDate date,
Frame frame)
Provides the target point at a given date in a given frame, represented by the
associated PVCoordinates object
|
Vector3D |
getVector(PVCoordinatesProvider origin,
AbsoluteDate date,
Frame frame)
Provides the direction vector at a given date in a given frame.
|
public GenericTargetDirection(PVCoordinatesProvider inTarget)
inTarget
- the PVCoordinatesProvider describing the target pointpublic Vector3D getVector(PVCoordinatesProvider origin, AbsoluteDate date, Frame frame) throws PatriusException
getVector
in interface IDirection
origin
- the current coordinates of the origin point of the direction (may be null, in that specific case, the
origin of the direction is the frame origin).date
- the dateframe
- the frame to project the vector's coordinatesPatriusException
- if some frame specific errors occurpublic PVCoordinates getTargetPVCoordinates(AbsoluteDate date, Frame frame) throws PatriusException
getTargetPVCoordinates
in interface ITargetDirection
date
- the dateframe
- the framePatriusException
- if position cannot be computed in given framepublic Line getLine(PVCoordinatesProvider origin, AbsoluteDate date, Frame frame) throws PatriusException
getLine
in interface IDirection
origin
- the origin of the directiondate
- the current dateframe
- the expression frame of the linePatriusException
- if some frame specific errors occurCopyright © 2018 CNES. All Rights Reserved.