#include <AABB.hpp>
Public Member Functions | |
AABB () | |
Constructor. | |
AABB (const AABB &aabb) | |
Copy constructor. | |
void | initialize (const Vector3D &min, const Vector3D &max) |
Initialize from min and max vectors. | |
bool | isInside (const Vector3D &vec) const |
Check if a vector is in the bounding box. | |
Private Attributes | |
Vector3D | m_min |
Minimum/maximum vector of the AABB. | |
Vector3D | m_max |
syBR::Core::AABB::AABB | ( | ) |
Constructor.
it initializes min and max vectors of the bounding-box to null vectors
syBR::Core::AABB::AABB | ( | const AABB & | aabb | ) |
Initialize from min and max vectors.
min | Minimum vector | |
max | Maximum vector |
bool syBR::Core::AABB::isInside | ( | const Vector3D & | vec | ) | const |
Check if a vector is in the bounding box.
vec | Vector to be checked against the AABB |
Vector3D syBR::Core::AABB::m_min [private] |
Minimum/maximum vector of the AABB.
Vector3D syBR::Core::AABB::m_max [private] |
Copyright © 2008 by Sebastien Frippiat
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.
Last modified Tue Dec 30 17:57:33 2008