Click or drag to resize

CentralBodyIntersectionDoesIntersect Method (MotionCartesian, MotionCartesian, Int32, Double, Double)

Determines if an orbit will intersect the planet specified by the corresponding gravitational parameter and geocentric radius of intersection.

Namespace:  AGI.Foundation.Celestial
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 22.2.414.0 (22.2.414.0)
public static bool DoesIntersect(
	Motion<Cartesian> motionOne,
	Motion<Cartesian> motionTwo,
	int numberOfRevs,
	double geocentricRadiusOfIntersection,
	double gravitationalParameter


Type: AGI.FoundationMotionCartesian
The first inertial motion.
Type: AGI.FoundationMotionCartesian
The second inertial motion.
Type: SystemInt32
Number of revolutions in the orbit.
Type: SystemDouble
The geocentric radius of intersection. For example, planetary semimajor axis plus 100 km.
Type: SystemDouble
The gravitational parameter of the planet.

Return Value

Type: Boolean
if the orbit falls below geocentricRadiusOfIntersection between the two positions on the orbit, otherwise.

Intersection is checked for the portion of the orbit between the first and second input positions. If multiple revolutions are input then the closest point on the orbit determines if the orbit intersects the planet.

The first velocity and position determines the orbit/transfer orbit. Input should be in the inertial frame of the planet in question.

Note that there is no effort made by this method to check the validity of the input.

See Also