Click or drag to resize

JplDEUseForCentralBodyPositions Method

Uses this JPLDE data for the positions of the centers of mass of the central bodies in the specified CentralBodiesFacet 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 void UseForCentralBodyPositions(
	CentralBodiesFacet centralBodiesFacet
)

Parameters

centralBodiesFacet
Type: AGI.Foundation.CelestialCentralBodiesFacet
The central bodies to update to use this JPLDE data.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when centralBodiesFacet is .
Remarks
To use JPLDE data for a single central body, use JplDECenterOfMassPoint. This method also calls SynchronizeOrigins on the bodies.
Examples
This example shows how to load a JPLDE file and use its data for the positions of the centers of mass of the central bodies in a CentralBodiesFacet.
C#
// Load a JplDE file using a string that represents the JplDE file
JplDE405 jplde = new JplDE405(Path.Combine(dataPath, "plneph.405"));

// Use the JplDE data in a CentralBodiesFacet
CentralBodiesFacet centralBodies = CentralBodiesFacet.GetFromContext();
jplde.UseForCentralBodyPositions(centralBodies);

// Optional - use the JplDE data for the Lunar fixed frame
MoonCentralBody moon = centralBodies.Moon;
moon.FixedFrame = jplde.GetMoonFixedFrame();
See Also