Represents a camera's frustum. More...
#import <CC3Camera.h>
Public Member Functions | |
| (BOOL) | - doesIntersectPointAt: |
| (BOOL) | - doesIntersectSphereAt:withRadius: |
| (void) | - populateFromProjection:andModelView: |
Static Public Member Functions | |
| (id) | + frustum |
Properties | |
| CC3Plane | bottom |
| CC3Plane | far |
| CC3Plane | left |
| CC3Plane | near |
| CC3Plane | right |
| CC3Plane | top |
Represents a camera's frustum.
Each CC3Camera instance contains an instance of this class.
| - (BOOL) doesIntersectPointAt: | (CC3Vector) | location |
Returns whether the specified global location intersects (is inside) this frustum.
| - (BOOL) doesIntersectSphereAt: | (CC3Vector) | location | |
| withRadius: | (GLfloat) | radius | |
Returns whether a sphere, centered at the specified global location, and with the specified radius, intersects this frustum.
| + (id) frustum |
Allocates and initializes an autorelease instance.
| - (void) populateFromProjection: | (CC3GLMatrix *) | aProjectionMatrix | |
| andModelView: | (CC3GLMatrix *) | aModelViewMatrix | |
Populates this frustum from the specified projectionMatrix and modelviewMatrix by multiplying the two matrices together and extracting the six frustum planes from the resulting model-view-projection matrix.
- (CC3Plane) bottom [read, write, assign] |
The clip plane at the bottom of this frustum.
- (CC3Plane) far [read, write, assign] |
The clip plane at the far end of this frustum.
- (CC3Plane) left [read, write, assign] |
The clip plane at the left side of this frustum.
- (CC3Plane) near [read, write, assign] |
The clip plane at the near end of this frustum.
- (CC3Plane) right [read, write, assign] |
The clip plane at the right side of this frustum.
- (CC3Plane) top [read, write, assign] |
The clip plane at the top of this frustum.
1.7.2