public class ViewFrustumModel extends Model
This class has two constructors that mimic the projPerspective()
methods from the Camera
class.
hidden, lineSegmentList
Constructor and Description |
---|
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(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.
|
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. |
public ViewFrustumModel()
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
.public ViewFrustumModel(double fovy, double aspect, double near, double far)
fovy
- angle in the y-direction subtended by the front faceaspect
- aspect ratio of the front facenear
- distance from the origin to the front facefar
- distance from the origin to the back facepublic ViewFrustumModel(double left, double right, double bottom, double top, double near, double far)
Camera
's perspective view volume.left
- left edge of the front face in the plane z = -nearright
- right edge of the front face in the plane z = -nearbottom
- bottom edge of the front face in the plane z = -neartop
- top edge of the front face in the plane z = -nearnear
- distance from the origin to the front facefar
- distance from the origin to the back face