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: 24.2.419.0 (24.2.419.0)
Syntax public CentralBodiesFacet()
public:
CentralBodiesFacet()
new : unit -> 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:
EarthCentralBody earth = CentralBodiesFacet.GetFromContext().Earth;
See Also