CircularEquatorialOrbitGrazingAngleConstraintDetermineClosestPoint Method |
Determines the point on a circular equatorial orbit with the provided radius
that has the smallest angular separation to a directed line segment starting at the provided position
and along the indicated direction.
Namespace:
AGI.Foundation.Access.Constraints
Assembly:
AGI.Foundation.Platforms (in AGI.Foundation.Platforms.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public static Cartesian DetermineClosestPoint(
Cartesian position,
UnitCartesian direction,
double radius
)
Public Shared Function DetermineClosestPoint (
position As Cartesian,
direction As UnitCartesian,
radius As Double
) As Cartesian
public:
static Cartesian DetermineClosestPoint(
Cartesian position,
UnitCartesian direction,
double radius
)
static member DetermineClosestPoint :
position : Cartesian *
direction : UnitCartesian *
radius : float -> Cartesian
Parameters
- position
- Type: AGI.Foundation.CoordinatesCartesian
The starting point of the directed line segment. - direction
- Type: AGI.Foundation.CoordinatesUnitCartesian
The ray of the directed line segment. - radius
- Type: SystemDouble
The radius of the circular equatorial orbit.
Return Value
Type:
CartesianThe closest point on a circular equatorial orbit. If at the pole and looking along the polar direction,
Undefined is returned, since all points on the orbit are equidistant.
Remarks Input and output vectors are assumed to be in the fixed frame of the central body.
See Also