Click or drag to resize

CentralBodiesFacet Class

A CalculationContextFacet that holds and provides information about central bodies such as planets, moons, the sun, etc.
Inheritance Hierarchy

Namespace:  AGI.Foundation.Celestial
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public class CentralBodiesFacet : CalculationContextFacet, 
	IEnumerable<CentralBody>, IEnumerable

The CentralBodiesFacet type exposes the following members.

Constructors
  NameDescription
Public methodCentralBodiesFacet
Initializes a new instance with default values. You should generally call the GetFromContext method instead of constructing a new instance.
Protected methodCentralBodiesFacet(CentralBodiesFacet, CopyContext)
Initializes a new instance as a copy of an existing instance.
Top
Properties
  NameDescription
Public propertyAriel
Gets the Uranian moon Ariel.
Public propertyCallisto
Gets the Jovian moon Callisto.
Public propertyCeres
Gets the dwarf planet Ceres.
Public propertyCharon
Gets the Plutonian moon Charon.
Public propertyDeimos
Gets the Martian moon Deimos.
Public propertyDione
Gets the Saturnian moon Dione.
Public propertyEarth
Gets the planet Earth.
Public propertyEarthMoonBarycenter
Gets the barycenter of the Earth-Moon system.
Public propertyEnceladus
Gets the Saturnian moon Enceladus.
Public propertyEuropa
Gets the Jovian moon Europa.
Public propertyGanymede
Gets the Jovian moon Ganymede.
Public propertyHyperion
Gets the Saturnian moon Hyperion.
Public propertyIapetus
Gets the Saturnian moon Iapetus.
Public propertyIo
Gets the Jovian moon Io.
Public propertyIsThreadSafe
Gets a value indicating whether the methods on this instance are safe to call from multiple threads simultaneously.
(Overrides CalculationContextFacetIsThreadSafe.)
Public propertyJupiter
Gets the planet Jupiter.
Public propertyJupiterSystemBarycenter
Gets the barycenter of the Jupiter system.
Public propertyMars
Gets the planet Mars.
Public propertyMarsSystemBarycenter
Gets the barycenter of the Mars system.
Public propertyMercury
Gets the planet Mercury.
Public propertyMimas
Gets the Saturnian moon Mimas.
Public propertyMoon
Gets the Moon.
Public propertyNeptune
Gets the planet Neptune.
Public propertyNeptuneSystemBarycenter
Gets the barycenter of the Neptune system.
Public propertyPhobos
Gets the Martian moon Phobos.
Public propertyPhoebe
Gets the Saturnian moon Phoebe.
Public propertyPluto
Gets the dwarf planet Pluto.
Public propertyPlutoSystemBarycenter
Gets the barycenter of the Pluto system.
Public propertyRhea
Gets the Saturnian moon Rhea.
Public propertySaturn
Gets the planet Saturn.
Public propertySaturnSystemBarycenter
Gets the barycenter of the Saturn system.
Public propertySolarSystemBarycenter
Gets the barycenter of the solar system.
Public propertySun
Gets the Sun.
Public propertyTethys
Gets the Saturnian moon Tethys.
Public propertyTitan
Gets the Saturnian moon Titan.
Public propertyTitania
Gets the Uranian moon Titania.
Public propertyTriton
Gets the Neptunian moon Triton.
Public propertyUranus
Gets the planet Uranus.
Public propertyUranusSystemBarycenter
Gets the barycenter of the Uranus system.
Public propertyVenus
Gets the planet Venus.
Public propertyVesta
Gets the asteroid Vesta.
Top
Methods
  NameDescription
Public methodClone
Clones this object using the specified context.
(Overrides CalculationContextFacetClone(CopyContext).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetByName
Gets a central body by name.
Public methodGetCentralBodyOfPoint
Gets the central body most closely associated with a given point.
Public methodGetEnumerator
Enumerates the central bodies.
Public methodStatic memberCode exampleGetFromContext
Gets the CentralBodiesFacet instance from the calculation context. If the context does not contain a CentralBodiesFacet instance, one will be created.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUseInCurrentContext
Adds this instance to the current context, making it the official instance of this facet type in the context.
(Overrides CalculationContextFacetUseInCurrentContext.)
Top
Remarks
Use the GetFromContext method to obtain an instance of type, instead of constructing a new one.
Examples

This example shows how to obtain the Earth central body:

C#
EarthCentralBody earth = CentralBodiesFacet.GetFromContext().Earth;
See Also