frameTarget

function frameTarget
cinematic.ts:765
frameTarget(camera: UniverseVector, target: { at: UniverseVector; x: number; y: number }, fovDeg: number, aspect: number, upHint: Vec3) → Quat

The orientation that puts one world-space target at one screen position, horizon leveled against upHint.

The single-target relative of frameTwoTargets: aim at the target, then rotate the screen point's view direction onto the forward axis, so the target lands off-center by exactly the asked-for amount. Roll comes from the hint rather than the solver, which is what a lone planet pass wants — the second target in those compositions is empty space.

cameraUniverseVector
Undocumented
target{ at: UniverseVector; x: number; y: number }
Undocumented
fovDegnumber
Undocumented
aspectnumber
Undocumented
upHintVec3
Undocumented
ReturnsQuat