Class ViewFrustumModel

    • Constructor Detail

      • ViewFrustumModel

        public ViewFrustumModel()
        Create a frustum of a pyramid along the negative z-axis with a front face at z = -0.25, a back face at z = -1, and the front face bounded by -0.25 <= x <= 0.25 and -0.25 <= y <= 0.25.
      • ViewFrustumModel

        public ViewFrustumModel​(double left,
                                double right,
                                double bottom,
                                double top,
                                double near,
                                double far)
        Create a frustum of a pyramid along the negative z-axis that mimics a Camera's perspective view volume.
        Parameters:
        left - left edge of the front face in the plane z = -near
        right - right edge of the front face in the plane z = -near
        bottom - bottom edge of the front face in the plane z = -near
        top - top edge of the front face in the plane z = -near
        near - distance from the origin to the front face
        far - distance from the origin to the back face
      • ViewFrustumModel

        public ViewFrustumModel​(double fovy,
                                double aspect,
                                double near,
                                double far)
        Here, the frustum is determined by a vertical "field of view" angle and an aspect ratio for the front face.
        Parameters:
        fovy - angle in the y-direction subtended by the front face
        aspect - aspect ratio of the front face
        near - distance from the origin to the front face
        far - distance from the origin to the back face