Click or drag to resize

CentralBodiesFacet Constructor

Initializes a new instance with default values. You should generally call the GetFromContext method instead of constructing a new instance.

Namespace:  AGI.Foundation.Celestial
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 19.1.398.0 (19.1.398.0)
Syntax
public CentralBodiesFacet()
Remarks
A default constructed CentralBodiesFacet instance has a default constructed instance of each central body. See the documentation for the default constructor of each central body class for information about the defaults. For example, see EarthCentralBody and SunCentralBody.
Examples
You should generally call the GetFromContext method instead of constructing a new instance. This example shows how to obtain the Earth central body using GetFromContext:
C#
EarthCentralBody earth = CentralBodiesFacet.GetFromContext().Earth;
See Also