
:mod:`psychopy.tools.viewtools`
-------------------------------

Math functions for working with view transformations and performing visibility
testing (see also :mod:`~psychopy.tools.mathtools`).

.. automodule:: psychopy.tools.viewtools
.. currentmodule:: psychopy.tools.viewtools

Overview
~~~~~~~~

.. autosummary:: 
    visualAngle
    computeFrustum
    computeFrustumFOV
    projectFrustum
    projectFrustumToPlane
    generalizedPerspectiveProjection
    orthoProjectionMatrix
    perspectiveProjectionMatrix
    lookAt
    pointToNdc
    cursorToRay
    visible
    visibleBBox

    
Details
~~~~~~~

.. autofunction:: visualAngle
.. autofunction:: computeFrustum
.. autofunction:: computeFrustumFOV
.. autofunction:: projectFrustum
.. autofunction:: projectFrustumToPlane
.. autofunction:: generalizedPerspectiveProjection
.. autofunction:: orthoProjectionMatrix
.. autofunction:: perspectiveProjectionMatrix
.. autofunction:: lookAt
.. autofunction:: pointToNdc
.. autofunction:: cursorToRay
.. autofunction:: visible
.. autofunction:: visibleBBox
