Function getPrincipalPoint

  • Beta

    Returns the camera's principal point (intersection of principal ray and image plane) in NDC coordinates.

    Parameters

    • camera: PerspectiveCamera

      The camera.

    • result: Vector2Like = ...

      Optional vector where the principal point coordinates will be copied.

    Returns Vector2Like

    A vector containing the principal point NDC coordinates.

    See

    https://en.wikipedia.org/wiki/Pinhole_camera_model

    Remarks

    This point coincides with the principal vanishing point. By default it's located at the image center (NDC coords [0,0]), and the resulting projection is centered or symmetric. But it may be offset (@see THREE.PerspectiveCamera.setViewOffset) for some use cases such as multiview setups (e.g. stereoscopic rendering), resulting in an asymmetric perspective projection.

Generated using TypeDoc