Function setVerticalFov

  • Beta

    Sets a camera's vertical fov.

    Parameters

    • camera: PerspectiveCamera
    • verticalFov: number

      Vertical field of view in radians. It'll be clamped to [MIN_FOV_RAD, MAX_FOV_RAD].

    • viewportHeight: number

      Viewport height in pixels, used to compute focal length.

    Returns number

    The new camera's vertical fov in radians.

    Remarks

    The camera's focal length will be updated to achieve the given viewport height.

Generated using TypeDoc