32 #ifndef Plane_INCLUDE_ONCE 33 #define Plane_INCLUDE_ONCE 56 VL_DEBUG_SET_OBJECT_NAME()
61 VL_DEBUG_SET_OBJECT_NAME()
70 int classify(
const AABB&)
const;
72 bool isOutside(
const AABB&)
const;
76 real
origin()
const {
return mOrigin; }
Plane(const vec3 &o, const vec3 &n)
The Plane class defines a plane using a normal and an origin.
Plane(real o=0.0f, vec3 n=vec3(0, 0, 0))
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
Visualization Library main namespace.
float dot(float a, float b)
The AABB class implements an axis-aligned bounding box using vl::real precision.
The base class for all the reference counted objects.
Implements the OpenGL Shading Language convenience functions for scalar and vector operations...
const vec3 & normal() const
fvec3 vec3
Defined as: 'typedef fvec3 vec3'. See also VL_PIPELINE_PRECISION.
void setNormal(const vec3 &normal)
void setOrigin(real origin)