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.3.420.0 (24.3.420.0)
Syntax public static Cartesian CalculateAcceleration(
Cartesian position,
double gravitationalParameter
)
Public Shared Function CalculateAcceleration (
position As Cartesian,
gravitationalParameter As Double
) As Cartesian
public:
static Cartesian CalculateAcceleration(
Cartesian position,
double gravitationalParameter
)
static member CalculateAcceleration :
position : Cartesian *
gravitationalParameter : float -> Cartesian
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:
CartesianThe gravitational acceleration.
See Also