• Computes a 4-by-4 orthogonal transformation matrix given the left, right, bottom, and top dimensions of the near clipping plane as well as the near and far clipping plane distances.

    Returns

    The perspective matrix.

    Member Of

    module:twgl/m4

    Parameters

    • left: any

      Left side of the near clipping plane viewport.

    • right: any

      Right side of the near clipping plane viewport.

    • bottom: any

      Bottom of the near clipping plane viewport.

    • top: any

      Top of the near clipping plane viewport.

    • near: any

      The depth (negative z coordinate) of the near clipping plane.

    • far: any

      The depth (negative z coordinate) of the far clipping plane.

    • Optional dst: Float32Array

      Output matrix. If not passed a new one is created.

    Returns Float32Array

Generated using TypeDoc