@lakuna/umath
    Preparing search index...

    Function perspectiveFromFieldOfView

    • Create a perspective projection matrix from a field of view. Useful for generating projection matrices to be used with the WebXR API.

      Type Parameters

      Parameters

      • fov: FieldOfView

        The field of view.

      • near: number

        The near bound of the frustum.

      • far: number

        The far bound of the frustum.

      • out: T

        The matrix to store the result in.

      Returns T

      The perspective projection matrix.