| java.lang.Object | |
| ↳ | casmi.graphics.object.Perspective |
Perspective class. Works like glFrustum. Wrapper of perspective projection for JOGL
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new Perspective object applying foreshortening,
making distant objects appear smaller than closer ones.
| |||||||||||
Creates a Perspective object with default values.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Sets a perspective projection applying foreshortening,
making distant objects appear smaller than closer ones.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
casmi.graphics.object.Projection
| |||||||||||
Creates a new Perspective object applying foreshortening, making distant objects appear smaller than closer ones.
| fov | The field-of-view angle (in radians) for vertical direction. |
|---|---|
| aspect | The ratio of width to height. |
| zNear | The z-position of nearest clipping plane. |
| zFar | The z-position of nearest farthest plane. |
Creates a Perspective object with default values. The default values are: Perspective(PI/3.0, width/height, cameraZ/10.0, cameraZ*10.0) where cameraZ is ((height/2.0) / tan(PI*60.0/360.0))
Sets a perspective projection applying foreshortening, making distant objects appear smaller than closer ones.
| fov | The field-of-view angle (in radians) for vertical direction. |
|---|---|
| aspect | The ratio of width to height. |
| zNear | The z-position of nearest clipping plane. |
| zFar | The z-position of nearest farthest plane. |