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: 24.2.419.0 (24.2.419.0)
Syntax public static bool DoesIntersect(
Motion<Cartesian> motionOne,
Motion<Cartesian> motionTwo,
int numberOfRevs,
double geocentricRadiusOfIntersection,
double gravitationalParameter
)
Public Shared Function DoesIntersect (
motionOne As Motion(Of Cartesian),
motionTwo As Motion(Of Cartesian),
numberOfRevs As Integer,
geocentricRadiusOfIntersection As Double,
gravitationalParameter As Double
) As Boolean
public:
static bool DoesIntersect(
Motion<Cartesian> motionOne,
Motion<Cartesian> motionTwo,
int numberOfRevs,
double geocentricRadiusOfIntersection,
double gravitationalParameter
)
static member DoesIntersect :
motionOne : Motion<Cartesian> *
motionTwo : Motion<Cartesian> *
numberOfRevs : int *
geocentricRadiusOfIntersection : float *
gravitationalParameter : float -> bool
Parameters
- motionOne
- Type: AGI.FoundationMotionCartesian
The first inertial motion. - motionTwo
- Type: AGI.FoundationMotionCartesian
The second inertial motion. - numberOfRevs
- Type: SystemInt32
Number of revolutions in the orbit. - geocentricRadiusOfIntersection
- Type: SystemDouble
The geocentric radius of intersection. For example, planetary semimajor axis plus 100 km. - gravitationalParameter
- 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.
Remarks 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