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: 24.2.419.0 (24.2.419.0)
Syntax public CentralBody GetCentralBodyOfPoint(
JulianDate date,
Point point
)
Public Function GetCentralBodyOfPoint (
date As JulianDate,
point As Point
) As CentralBody
public:
CentralBody^ GetCentralBodyOfPoint(
JulianDate date,
Point^ point
)
member GetCentralBodyOfPoint :
date : JulianDate *
point : Point -> CentralBody
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:
CentralBodyThe 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