Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
#include <AABB.hpp>
Public Member Functions | |
| AABB () | |
| AABB (const vec3 ¢er, Real radius) | |
| AABB (const vec3 &pt1, const vec3 &pt2, Real displace=0) | |
| void | setNull () |
| bool | isNull () const |
| bool | isPoint () const |
| void | enlarge (Real displace) |
| void | addPoint (const vec3 &v, Real radius) |
| bool | intersects (const AABB &bb) const |
| vec3 | clip (const vec3 &v, bool clipx=true, bool clipy=true, bool clipz=true) const |
| bool | isInside (const vec3 &v, bool clipx, bool clipy, bool clipz) const |
| bool | isInside (const vec3 &v) const |
| Real | height () const |
| Real | width () const |
| Real | depth () const |
| AABB | operator+ (const AABB &aabb) const |
| const AABB & | operator+= (const AABB &other) |
| AABB | operator+ (const vec3 &p) |
| const AABB & | operator+= (const vec3 &p) |
| vec3 | center () const |
| Real | area () const |
| Real | longestSideLength () const |
| void | addPoint (const vec3 &v) |
| void | transformed (AABB &aabb, const mat4 &mat) const |
| AABB | transformed (const mat4 &mat) const |
| const vec3 & | minCorner () const |
| const vec3 & | maxCorner () const |
| void | setMinCorner (Real x, Real y, Real z) |
| void | setMinCorner (const vec3 &v) |
| void | setMaxCorner (Real x, Real y, Real z) |
| void | setMaxCorner (const vec3 &v) |
| Real | volume () const |
Protected Attributes | |
| vec3 | mMin |
| vec3 | mMax |
| AABB::AABB | ( | ) |
| void vl::AABB::setNull | ( | ) | [inline] |
| bool vl::AABB::isNull | ( | ) | const [inline] |
| bool vl::AABB::isPoint | ( | ) | const [inline] |
| void AABB::enlarge | ( | Real | displace | ) |
| bool AABB::intersects | ( | const AABB & | bb | ) | const |
| bool AABB::isInside | ( | const vec3 & | v, | |
| bool | clipx, | |||
| bool | clipy, | |||
| bool | clipz | |||
| ) | const |
| bool AABB::isInside | ( | const vec3 & | v | ) | const |
| Real AABB::height | ( | ) | const |
| Real AABB::width | ( | ) | const |
| Real AABB::depth | ( | ) | const |
| vec3 AABB::center | ( | ) | const |
| Real vl::AABB::area | ( | ) | const [inline] |
| Real vl::AABB::longestSideLength | ( | ) | const [inline] |
| void vl::AABB::addPoint | ( | const vec3 & | v | ) | [inline] |
| const vec3& vl::AABB::minCorner | ( | ) | const [inline] |
| const vec3& vl::AABB::maxCorner | ( | ) | const [inline] |
| void vl::AABB::setMinCorner | ( | const vec3 & | v | ) | [inline] |
| void vl::AABB::setMaxCorner | ( | const vec3 & | v | ) | [inline] |
| Real vl::AABB::volume | ( | ) | const [inline] |
vec3 vl::AABB::mMin [protected] |
vec3 vl::AABB::mMax [protected] |