32 #ifndef Frustum_INCLUDE_ONCE 33 #define Frustum_INCLUDE_ONCE 65 for(
unsigned i=0; i<
planes().size(); ++i)
77 for(
unsigned i=0; i<
planes().size(); ++i)
85 bool cull(
const std::vector<fvec3>& points)
const 87 for(
unsigned i=0; i<
planes().size(); ++i)
90 for(; j<points.size(); ++j)
93 if(j == points.size())
bool cull(const AABB &aabb) const
The Plane class defines a plane using a normal and an origin.
bool isNull() const
Returns true if the AABB is null.
void setPlane(unsigned i, const Plane &plane)
A set of planes defining a frustum used for culling purposes (frustum culling).
std::vector< Plane > & planes()
const vec3 & center() const
Returns the center of the sphere.
bool cull(const Sphere &sphere) const
bool isOutside(const AABB &) const
const Plane & plane(unsigned i) const
bool cull(const std::vector< fvec3 > &points) const
real distance(const vec3 &v) const
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
Visualization Library main namespace.
real radius() const
Returns the radius of the sphere.
The AABB class implements an axis-aligned bounding box using vl::real precision.
The base class for all the reference counted objects.
The Sphere class defines a sphere using a center and a radius using vl::real precision.
std::vector< Plane > mPlanes
const std::vector< Plane > & planes() const
bool isNull() const
Returns true if the sphere is null, ie, if radius is < 0.