function anglesForPhase
observer.ts:424
anglesForPhase(toStar: Vec3, phaseDeg: number, elevationDeg: number) → { azimuth: number; elevation: number }
Where the camera should be to see a body the way the light falls on it.
Given the direction from the target to its star, this returns the azimuth and
elevation that put the camera at phaseDeg from the sun line — the same
photographic term shots.ts uses, where 0° is a full face and 150° a
crescent. It exists so a planetarium preset ("gibbous Saturn") is one call
rather than a hand-solved pair of angles, and so the presets agree with the
camera bookmarks the flight harness already ships.
- toStarVec3
- Undocumented
- phaseDegnumber
- Undocumented
- elevationDegnumber
- Undocumented
Returns{ azimuth: number; elevation: number }