public class CrossProductDirection extends Object implements IDirection
Constructor and Description |
---|
CrossProductDirection(IDirection direction1,
IDirection direction2)
Build a cross product of two directions.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public CrossProductDirection(IDirection direction1, IDirection direction2)
direction1
- first directiondirection2
- second directionpublic Vector3D getVector(PVCoordinatesProvider pvCoord, AbsoluteDate date, Frame frame) throws PatriusException
getVector
in interface IDirection
pvCoord
- PV coordinatesdate
- a dateframe
- the frame to project the vector's coordinatesPatriusException
- if one of directions vectors could not be retrievedpublic Line getLine(PVCoordinatesProvider pvCoord, AbsoluteDate date, Frame frame) throws PatriusException
getLine
in interface IDirection
pvCoord
- PV coordinates. If null, PVCoordinates.ZERO
is considereddate
- a dateframe
- the expression frame of the linePatriusException
- if some frame specific errors occur or if directions vectors could not be retrievedCopyright © 2023 CNES. All rights reserved.