

Public Member Functions | |
| __construct () | |
| makeOrthographic ($left, $right, $bottom, $top, $near, $far) | |
| makePerspective ($fovy, $aspect, $near, $far) | |
| Projection::__construct | ( | ) |
Default constructor calling parent constructor.
Reimplemented from Matrix4x4.
| Projection::makeOrthographic | ( | $ | left, | |
| $ | right, | |||
| $ | bottom, | |||
| $ | top, | |||
| $ | near, | |||
| $ | far | |||
| ) |
Create an orthographic projection.
| $left | Left clipping plane. | |
| $right | Right clipping plane. | |
| $bottom | Bottom clipping plane. | |
| $top | Top clipping plane. | |
| $near | Near z clipping plane. | |
| $far | Far z clipping plane. |
| Projection::makePerspective | ( | $ | fovy, | |
| $ | aspect, | |||
| $ | near, | |||
| $ | far | |||
| ) |
Create a perspective projection.
| $fovy | Field of view in y direction in radians. | |
| $aspect | Aspect ratio of width to height. | |
| $near | Near z clipping plane. | |
| $far | Far z clipping plane. |
1.5.6