Vertex Viewer SDK
    Preparing search index...

    Function makeOrthographic

    • Creates an orthographic projection matrix.

      Related to: gluOrtho. The viewing volume is cube-shaped and defined by the six parameters. The left and right values represent the coordinates of the vertical clipping planes, top and bottom values represent the coordinates of the horizontal clipping planes, and near and far values represent the coordinates of the depth clipping planes.

      Parameters

      • left: number

        The coordinate of the left horizontal clipping plane.

      • right: number

        The coordinate of the right horizontal clipping plane.

      • bottom: number

        The coordinate of the bottom vertical clipping plane.

      • top: number

        The coordinate of the top vertical clipping plane.

      • near: number

        The coordinate of the near depth clipping plane.

      • far: number

        The coordinate of the far depth clipping plane.

      Returns Matrix4.Matrix4

      A matrix.