framingDistance

function framingDistance
observer.ts:278
framingDistance(radius: number, fovDeg: number, fill: number) → number

The distance at which a sphere of radius fills fill of the frame height.

fill is the fraction of the vertical field of view the body's diameter subtends, so 1 is edge-to-edge and the useful framing is nearer 0.6 — a disk with space around it, which is how every planetary photograph anyone recognizes is composed. See shots.ts, which makes the same argument in body radii for a fixed lens.

radiusnumber
Undocumented
fovDegnumber
Undocumented
fillnumber
Undocumented
Returnsnumber