org.orekit.attitudes.directions
Class ConstantVectorDirection

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

public final class ConstantVectorDirection
extends Object
implements IDirection

Direction described only by a vector constant in a frame

Since:
1.1
Version:
$Id: ConstantVectorDirection.java 17582 2017-05-10 12:58:16Z bignon $
Author:
Thomas Trapier
Concurrency :
not thread-safe
Concurrency comment :
The use of a frame linked to the tree of frames makes this class not thread-safe.

Constructor Summary
ConstantVectorDirection(Vector3D inVector, Frame inFrame)
          Build a direction from a frame and a vector constant in this frame
 
Method Summary
 Frame getFrame()
           
 Line getLine(PVCoordinatesProvider pvCoord, AbsoluteDate date, Frame frame)
          Provides the line containing the given origin point 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

ConstantVectorDirection

public ConstantVectorDirection(Vector3D inVector,
                               Frame inFrame)
Build a direction from a frame and a vector constant in this frame

Parameters:
inVector - the constant vector in the input frame
inFrame - the frame in which the vector is the constant given one
Method Detail

getFrame

public Frame getFrame()
Returns:
the frame

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
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 given origin point and directed by the direction vector

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


Copyright © 2017 CNES. All Rights Reserved.