Skip to content

Function: toStarParams()

ts
function toStarParams(cfg): object;

Returns { radius, tempK } derived from a StarPhysicsInput — the minimal star parameters consumed by orbital physics in downstream features.

tempK is the star's surface temperature in Kelvin (e.g. 5778 K for the Sun). Earlier revisions exposed it as tempAvg, which suggested a mean over a temperature range — an inaccurate framing for a body whose temperature is a single physical scalar.

Parameters

ParameterType
cfgStarPhysicsInput

Returns

object

radius

ts
radius: number;

tempK

ts
tempK: number;

Distribué sous la licence indiquée dans le dépôt.