#include <Frustum.h>
Public Types | |
| enum | { NEAR, FAR, LEFT, RIGHT, TOP, BOTTOM } |
Public Member Functions | |
| Frustum () | |
| Frustum (const Camera &cam) | |
| void | set (const Camera &cam) |
| Creates a frustum based on the camera's parameters. | |
| void | set (const Camera &cam, const Vec3< T > &ntl, const Vec3< T > &ntr, const Vec3< T > &nbl, const Vec3< T > &nbr) |
| Creates a frustum based on the camera's parameters and four corners of a portal. | |
| bool | contains (const Vec3< T > &loc) const |
| Returns TRUE if point is within frustum. | |
| bool | contains (const Sphere &sphere) const |
| Returns TRUE if the sphere is fully contained within frustum. See also 'intersects'. | |
| bool | contains (const Vec3< T > ¢er, T radius) const |
| Returns TRUE if the sphere is fully contained within frustum. See also 'intersects'. | |
| bool | contains (const AxisAlignedBox3f &box) const |
| Returns TRUE if the box is fully contained within frustum. See also 'intersects'. | |
| bool | contains (const Vec3< T > ¢er, const Vec3< T > &size) const |
| Returns TRUE if the box is fully contained within frustum. See also 'intersects'. | |
| bool | intersects (const Vec3< T > &loc) const |
| Returns TRUE if point is within frustum. | |
| bool | intersects (const Sphere &sphere) const |
| Returns TRUE if the sphere is partially contained within frustum. See also 'contains'. | |
| bool | intersects (const Vec3< T > ¢er, T radius) const |
| Returns TRUE if the sphere is partially contained within frustum. See also 'contains'. | |
| bool | intersects (const AxisAlignedBox3f &box) const |
| Returns TRUE if the box is partially contained within frustum. See also 'contains'. | |
| bool | intersects (const Vec3< T > ¢er, const Vec3< T > &size) const |
| Returns TRUE if the box is partially contained within frustum. See also 'contains'. | |
Protected Attributes | |
| Plane< T > | mFrustumPlanes [6] |
| cinder::Frustum< T >::Frustum | ( | ) |
| cinder::Frustum< T >::Frustum | ( | const Camera & | cam | ) |
| void cinder::Frustum< T >::set | ( | const Camera & | cam | ) |
Creates a frustum based on the camera's parameters.
| void cinder::Frustum< T >::set | ( | const Camera & | cam, |
| const Vec3< T > & | ntl, | ||
| const Vec3< T > & | ntr, | ||
| const Vec3< T > & | nbl, | ||
| const Vec3< T > & | nbr | ||
| ) |
Creates a frustum based on the camera's parameters and four corners of a portal.
| bool cinder::Frustum< T >::contains | ( | const Vec3< T > & | loc | ) | const |
Returns TRUE if point is within frustum.
| bool cinder::Frustum< T >::contains | ( | const Sphere & | sphere | ) | const |
Returns TRUE if the sphere is fully contained within frustum. See also 'intersects'.
| bool cinder::Frustum< T >::contains | ( | const Vec3< T > & | center, |
| T | radius | ||
| ) | const |
Returns TRUE if the sphere is fully contained within frustum. See also 'intersects'.
| bool cinder::Frustum< T >::contains | ( | const AxisAlignedBox3f & | box | ) | const |
Returns TRUE if the box is fully contained within frustum. See also 'intersects'.
| bool cinder::Frustum< T >::contains | ( | const Vec3< T > & | center, |
| const Vec3< T > & | size | ||
| ) | const |
Returns TRUE if the box is fully contained within frustum. See also 'intersects'.
| bool cinder::Frustum< T >::intersects | ( | const Vec3< T > & | loc | ) | const |
Returns TRUE if point is within frustum.
| bool cinder::Frustum< T >::intersects | ( | const Sphere & | sphere | ) | const |
Returns TRUE if the sphere is partially contained within frustum. See also 'contains'.
| bool cinder::Frustum< T >::intersects | ( | const Vec3< T > & | center, |
| T | radius | ||
| ) | const |
Returns TRUE if the sphere is partially contained within frustum. See also 'contains'.
| bool cinder::Frustum< T >::intersects | ( | const AxisAlignedBox3f & | box | ) | const |
Returns TRUE if the box is partially contained within frustum. See also 'contains'.
| bool cinder::Frustum< T >::intersects | ( | const Vec3< T > & | center, |
| const Vec3< T > & | size | ||
| ) | const |
Returns TRUE if the box is partially contained within frustum. See also 'contains'.
Plane<T> cinder::Frustum< T >::mFrustumPlanes[6] [protected] |