Function ortho

ortho(left, right, bottom, top, [zNear], [zFar]) returns a $4 \times 4$ transformation that produces a parallel projection.

  • Parameters

    • Left: Num

      coordinate of the left vertical clipping plane

    • Right: Num

      coordinate of the right vertical clipping plane

    • Bottom: Num

      coordinate of the bottom horizontal clipping plane

    • Top: Num

      coordinate of the top horizontal clipping plane

    • zNear: Num = 0.1

      distance to the nearer depth clipping plane

    • zFar: Num = 100.0

      distance to the farther depth clipping plane

    Returns Num[][]

    Orthographic projection matrix