Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
#include <Plane.hpp>

Public Member Functions | |
| Plane (Real o=0.0f, vec3 n=vec3(0, 0, 0)) | |
| Plane (const vec3 &o, const vec3 &n) | |
| virtual const char * | className () |
| Returns the name of the class. | |
| Real | distance (const vec3 &v) const |
| int | classify (const AABB &) const |
| returns 0 if the AABB intersects the plane, 1 if it's in the positive side, -1 if it's in the negative side. | |
| bool | isOutside (const AABB &) const |
| const vec3 & | normal () const |
| Real | origin () const |
| void | setNormal (const vec3 &normal) |
| void | setOrigin (Real origin) |
Protected Attributes | |
| vec3 | mNormal |
| Real | mOrigin |
| virtual const char* vl::Plane::className | ( | ) | [inline, virtual] |
| int Plane::classify | ( | const AABB & | aabb | ) | const |
returns 0 if the AABB intersects the plane, 1 if it's in the positive side, -1 if it's in the negative side.
| bool Plane::isOutside | ( | const AABB & | aabb | ) | const |
| const vec3& vl::Plane::normal | ( | ) | const [inline] |
| Real vl::Plane::origin | ( | ) | const [inline] |
| void vl::Plane::setNormal | ( | const vec3 & | normal | ) | [inline] |
| void vl::Plane::setOrigin | ( | Real | origin | ) | [inline] |
vec3 vl::Plane::mNormal [protected] |
Real vl::Plane::mOrigin [protected] |