Click or drag to resize

TwoBodyGravityCalculateAcceleration Method

Calculates the acceleration at a position caused by two-body gravity. This low-level call is provided for convenience in simple use cases, in general you should produce a ForceEvaluator from this class that will model gravitational acceleration on an object over time.

Namespace:  AGI.Foundation.Celestial
Assembly:  AGI.Foundation.OrbitPropagation (in AGI.Foundation.OrbitPropagation.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public static Cartesian CalculateAcceleration(
	Cartesian position,
	double gravitationalParameter
)

Parameters

position
Type: AGI.Foundation.CoordinatesCartesian
The position of the target object.
gravitationalParameter
Type: SystemDouble
The gravitational parameter of the body being orbited.

Return Value

Type: Cartesian
The gravitational acceleration.
See Also