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: 19.1.398.0 (19.1.398.0)
public static Cartesian CalculateAcceleration(
	Cartesian position,
	double gravitationalParameter


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

Return Value

Type: Cartesian
The gravitational acceleration.
See Also