/** * Copyright (c) 2025 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Adam Midlik * @author David Sehnal */ import { Camera } from '../mol-canvas3d/camera.js'; import { Vec3 } from '../mol-math/linear-algebra.js'; /** Return the position for a camera with an arbitrary field of view `fov` * necessary to just fit into view the same sphere (with center at `target`) * as the "reference camera" placed at `refPosition` would fit, while keeping the camera orientation. * The "reference camera" is a camera which can just fit into view a sphere of radius R with center at distance 2R * (this corresponds to FOV = 2 * asin(1/2) in perspective mode or FOV = 2 * atan(1/2) in orthographic mode). */ export declare function fovAdjustedPosition(target: Vec3, refPosition: Vec3, mode: Camera.Mode, fov: number): Vec3; /** Return the inverse of fovAdjustedPosition to be able to store invariant camera position, * e.g., in MolViewSpec snapshots. */ export declare function fovNormalizedCameraPosition(target: Vec3, refPosition: Vec3, mode: Camera.Mode, fov: number): Vec3;