DotNet.Astronomy.Class.BodyPhysics - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
EliteDangerousAlmanac / Astronomy / BodyPhysics
Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/BodyPhysics.cs:31
What a scanned body weighs, how dense it is, and what it pulls on.
Every calculation reads the figures the scan states, and answers null where the body states none it can use. A journal writes zero for a figure it does not have, so a figure of zero is read as an absent one wherever a calculation needs it above zero.
The maths is ported from the Canonn Research Group's canonn-signals. See ATTRIBUTIONS.md for credit and licence terms.
constGravitationalConstant:double=6.6743e-11
Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/BodyPhysics.cs:34
The gravitational constant, in cubic metres a kilogram a second squared.
constKilogramsPerEarthMass:double=5.972e24
Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/BodyPhysics.cs:37
One Earth mass in kilograms.
constKilogramsPerSolarMass:double=1.989e30
Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/BodyPhysics.cs:40
One solar mass in kilograms.
staticBulkDensity(body):double?
Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/BodyPhysics.cs:65
How dense one body is, in kilograms a cubic metre.
The body, as a scan states it.
double?
The density, or null where the body states no mass or no radius.
ArgumentNullException
The body is absent.
staticHillRadius(body,primary):double?
Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/BodyPhysics.cs:131
How far one body holds satellites of its own, in metres.
The body, as a scan states it.
The body it orbits, as a scan states it.
double?
The radius, or null where either body states too little.
ArgumentNullException
Either body is absent.
staticMass(body):double?
Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/BodyPhysics.cs:53
What one body weighs, in kilograms.
The body, as a scan states it.
double?
The mass, or null where the body states neither Earth masses nor solar masses.
A planet states Earth masses and a star states solar masses.
ArgumentNullException
The body is absent.
staticPrimaryAngularDiameter(body,primary):double?
Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/BodyPhysics.cs:156
How wide the body it orbits looks from one body, in degrees.
The body being looked from, as a scan states it.
The body being looked at, as a scan states it.
double?
The angular diameter, or null where either body states too little.
ArgumentNullException
Either body is absent.
staticRocheLimits(satellite,primary):RocheLimits?
Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/BodyPhysics.cs:115
Where one body pulls another apart.
The body being pulled, as a scan states it.
The body doing the pulling, as a scan states it.
The two limits, or null where either body states too little.
ArgumentNullException
Either body is absent.
staticRocheLimitsForDensity(primary,satelliteDensityKgM3):RocheLimits?
Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/BodyPhysics.cs:82
Where one body pulls apart a satellite of a stated density.
The body doing the pulling, as a scan states it.
double
The satellite's density, in kilograms a cubic metre.
The two limits, or null where the primary states no radius or no mass.
ArgumentNullException
The primary is absent.
ArgumentOutOfRangeException
The satellite density is not a finite figure above zero.