public class BasicBoardSun extends Object implements IDirection
Constructor and Description |
---|
BasicBoardSun()
Constructor with default values.
|
BasicBoardSun(AbsoluteDate ref,
double alpha1,
double alpha2,
double nu1,
double nu2,
double lon1,
double epsilon)
Constructor with user values.
|
Modifier and Type | Method and Description |
---|---|
Line |
getLine(PVCoordinatesProvider pvCoord,
AbsoluteDate date,
Frame frame)
Get the line from the position in pvCoord to the Sun.
|
Vector3D |
getVector(PVCoordinatesProvider pvCoord,
AbsoluteDate date,
Frame frame)
Get the direction of the sun.
|
public BasicBoardSun()
public BasicBoardSun(AbsoluteDate ref, double alpha1, double alpha2, double nu1, double nu2, double lon1, double epsilon)
ref
- Reference datealpha1
- Sun mean longitude constant α1 (rad)alpha2
- Sun mean longitude constant α2 (rad/s)nu1
- Sun mean anomaly default constant ν1 (rad)nu2
- Sun mean anomaly default constant ν2 (rad/s)lon1
- Sun longitude amplitudeepsilon
- epsilonpublic Vector3D getVector(PVCoordinatesProvider pvCoord, AbsoluteDate date, Frame frame) throws PatriusException
Get the direction of the sun. The parameter pvCoord is not used because all directions are colinear.
Provides the direction vector at a given date in a given frame.getVector
in interface IDirection
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 dateframe
- the frame to project the vector's coordinatesPatriusException
- if some frame specific errors occurpublic Line getLine(PVCoordinatesProvider pvCoord, AbsoluteDate date, Frame frame) throws PatriusException
Get the line from the position in pvCoord to the Sun.
Provides the line containing the origin (given PV coordinates) and directed by the direction vector.getLine
in interface IDirection
pvCoord
- the origin of the directiondate
- the current dateframe
- the expression frame of the linePatriusException
- if some frame specific errors occurCopyright © 2019 CNES. All rights reserved.