Click or drag to resize

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
)

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: Cartesian
The 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