bool FrustumT<T>::contains( const AxisAlignedBox &box ) const { for( size_t i = 0; i < 6; ++i ) { if( mFrustumPlanes[i].distance( Vec3T( box.getPositive( vec3( mFrustumPlanes[i].getNormal() ) ) ) ) < 0 ) return false; else if( mFrustumPlanes[i].distance( Vec3T( box.getNegative( vec3( mFrustumPlanes[i].getNormal() ) ) ) ) < 0 ) return false; } return true; }