Vertex Viewer SDK
    Preparing search index...

    Function makeFrustum

    • Creates a matrix used for perspective projections.

      The viewing volume is frustum-shaped and defined by the six parameters. Left, right, top, and bottom specify coordinates in the near clipping plane where the frustum edges intersect it, and the near and far parameters define the forward distances of the view volume. The resulting volume can be vertically and horizontally asymmetrical around the center of the near plane.

      Parameters

      • left: number

        The left coordinate at the near plane.

      • right: number

        The right coordinate at the near plane.

      • top: number

        The top coordinate at the near plane.

      • bottom: number

        The bottom coordinate at the near plane.

      • near: number

        The near distance.

      • far: number

        The far distance.

      Returns Matrix4.Matrix4

      A matrix representing a view frustum.