org.orekit.attitudes.directions
Class EarthToCelestialBodyCenterDirection

java.lang.Object
  extended by org.orekit.attitudes.directions.EarthToCelestialBodyCenterDirection
All Implemented Interfaces:
IDirection, ITargetDirection

public class EarthToCelestialBodyCenterDirection
extends Object
implements ITargetDirection

Direction from Earth center to celestial body center : the central body's center is the target point.

Since:
3.3
Version:
$Id: EarthToCelestialBodyCenterDirection.java 17582 2017-05-10 12:58:16Z bignon $
Author:
rodriguest
Concurrency :
immutable

Constructor Summary
EarthToCelestialBodyCenterDirection(CelestialBody body)
          Constructor for celestial body center direction from Earth center : the celestial body's center is the target point.
 
Method Summary
 Line getLine(PVCoordinatesProvider pvCoord, 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 pvCoord, AbsoluteDate date, Frame frame)
          Provides the direction vector at a given date in a given frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EarthToCelestialBodyCenterDirection

public EarthToCelestialBodyCenterDirection(CelestialBody body)
Constructor for celestial body center direction from Earth center : the celestial body's center is the target point.

Parameters:
body - the celestial body
Method Detail

getVector

public Vector3D getVector(PVCoordinatesProvider pvCoord,
                          AbsoluteDate date,
                          Frame frame)
                   throws OrekitException
Provides the direction vector at a given date in a given frame.

Specified by:
getVector in interface IDirection
Parameters:
pvCoord - 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 date
frame - the frame to project the vector's coordinates
Returns:
the direction vector at the given date in the given frame
Throws:
OrekitException - if some frame specific errors occur

getLine

public Line getLine(PVCoordinatesProvider pvCoord,
                    AbsoluteDate date,
                    Frame frame)
             throws OrekitException
Provides the line containing the origin (given PV coordinates) and directed by the direction vector.

Specified by:
getLine in interface IDirection
Parameters:
pvCoord - the origin of the direction
date - the current date
frame - the expression frame of the line
Returns:
the Line of space containing the origin and direction vector
Throws:
OrekitException - if some frame specific errors occur

getTargetPVCoordinates

public PVCoordinates getTargetPVCoordinates(AbsoluteDate date,
                                            Frame frame)
                                     throws OrekitException
Provides the target point at a given date in a given frame, represented by the associated PVCoordinates object

Specified by:
getTargetPVCoordinates in interface ITargetDirection
Parameters:
date - the date
frame - the frame
Returns:
the PVCoordinates of the target
Throws:
OrekitException - if position cannot be computed in given frame


Copyright © 2017 CNES. All Rights Reserved.