magic-pixels
    Preparing search index...

    Function ortho

    • creates a transformation that produces a parallel projection

      Parameters

      • left: number

        coordinate for the left vertical clipping planes.

      • right: number

        coordinate for the right vertical clipping planes.

      • bottom: number

        coordinate for the bottom horizontal clippling pane.

      • top: number

        coordinate for the top horizontal clipping pane

      • zNear: number

        Specify the distances to the nearer and farther depth clipping planes. These values are negative if the plane is to be behind the viewer.

      • zFar: number

        Specify the distances to the nearer and farther depth clipping planes. These values are negative if the plane is to be behind the viewer.

      Returns Matrix

      4x4 orthographic transformation matrix (see Mat4.ortho for the Mat4 variant)