CircularEquatorialOrbitGrazingAngleConstraint.DetermineClosestPoint 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.3.420.0 (24.3.420.0)
Syntaxpublic 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.Coordinates.Cartesian
The starting point of the directed line segment. - direction
- Type: AGI.Foundation.Coordinates.UnitCartesian
The ray of the directed line segment. - radius
- Type: System.Double
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.
RemarksInput and output vectors are assumed to be in the fixed frame of the central body.
See Also