orbitalPhase

function orbitalPhase
devtools/src/maneuvers.ts:131
orbitalPhase(world: World, frame: FrameId, eye: UniverseVector, time: number) → Degrees | null

The angle at a body between an eye and the star: zero for the full face, 180 for a silhouette.

A function of a time and an eye, not of an entity, because ir.light() asks about an eye that need not be the player's. Only a body frame has a phase: a landing's sf:, an interstellar hold-off and a star orbit's s: all answer null, and so does an eye at the body's center.

worldWorld
Undocumented
frameFrameId
Undocumented
eyeUniverseVector
Undocumented
timenumber
Undocumented
ReturnsDegrees | null