org.orekit.attitudes.directions
Class CrossProductDirection

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

public class CrossProductDirection
extends Object
implements IDirection

This direction is the cross product of two directions

Since:
3.0
Version:
$Id:
Author:
Delphine Pontisso
Concurrency :
conditionally thread-safe
Concurrency comment :
this class is not thread-safe

Constructor Summary
CrossProductDirection(IDirection direction1, IDirection direction2)
          Build a cross product of two directions.
 
Method Summary
 Line getLine(PVCoordinatesProvider pvCoord, AbsoluteDate date, Frame frame)
          Provides the line containing the origin (given PV coordinates) and directed by the cross product of directions.
 Vector3D getVector(PVCoordinatesProvider pvCoord, AbsoluteDate date, Frame frame)
          Provides the cross product of direction1 vector and dirction2 vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrossProductDirection

public CrossProductDirection(IDirection direction1,
                             IDirection direction2)
Build a cross product of two directions.

Parameters:
direction1 - first direction
direction2 - second direction
Method Detail

getVector

public Vector3D getVector(PVCoordinatesProvider pvCoord,
                          AbsoluteDate date,
                          Frame frame)
                   throws OrekitException
Provides the cross product of direction1 vector and dirction2 vector.

Specified by:
getVector in interface IDirection
Parameters:
pvCoord - PV coordinates
date - a date
frame - the frame to project the vector's coordinates
Returns:
the direction1 vector cross product with the direction2 vector
Throws:
OrekitException - if one of directions vectors could not be retrieved

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 cross product of directions.

Specified by:
getLine in interface IDirection
Parameters:
pvCoord - PV coordinates. If null, PVCoordinates.ZERO is considered
date - a 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 or if directions vectors could not be retrieved


Copyright © 2016 CNES. All Rights Reserved.