Click or drag to resize

CentralBodiesFacetGetCentralBodyOfPoint Method

Gets the central body most closely associated with a given point.

Namespace:  AGI.Foundation.Celestial
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 19.1.398.0 (19.1.398.0)
Syntax
public CentralBody GetCentralBodyOfPoint(
	JulianDate date,
	Point point
)

Parameters

date
Type: AGI.Foundation.TimeJulianDate
The date at which to obtain the central body, in case the point is defined in different reference frames at different times.
point
Type: AGI.Foundation.GeometryPoint
The point.

Return Value

Type: CentralBody
The central body that is most closely associated with the point.
Remarks
This method traverses the DefinedInIntervals chain until it finds the center of mass point of a central body, and returns that central body. If a central body center of mass point is not found, this method returns null.
See Also