org.orekit.attitudes.directions
Class CelestialBodyPolesAxisDirection

java.lang.Object
  extended by org.orekit.attitudes.directions.CelestialBodyPolesAxisDirection
All Implemented Interfaces:
IDirection

public final class CelestialBodyPolesAxisDirection
extends Object
implements IDirection

This direction is the axis defined by the two poles of a celestial body.

Since:
1.1
Version:
$Id: CelestialBodyPolesAxisDirection.java 11329 2014-10-29 15:21:19Z maggiorani $
Author:
Thomas Trapier
Concurrency :
conditionally thread-safe
Concurrency comment :
this class is thread-safe only if the underlying CelestialBody is too.

Constructor Summary
CelestialBodyPolesAxisDirection(CelestialBody inBody)
          Build a direction defined by the frame associated to a celestial body.
 
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.
 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

CelestialBodyPolesAxisDirection

public CelestialBodyPolesAxisDirection(CelestialBody inBody)
Build a direction defined by the frame associated to a celestial body. The vector is the Z axis of its oriented frame.

Parameters:
inBody - the celestial body associated to the orbit
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. This Direction has no origin, so the pv coordinates are unused.

Specified by:
getVector in interface IDirection
Parameters:
pvCoord - UNUSED : null is accepted
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. This Direction has no origin, so the pv coordinates are unused.

Specified by:
getLine in interface IDirection
Parameters:
pvCoord - UNUSED : null is accepted
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


Copyright © 2016 CNES. All Rights Reserved.