syBR::Core::AABB Class Reference

Axis-Aligned Bounding Box class. More...

#include <AABB.hpp>

List of all members.

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


Detailed Description

Axis-Aligned Bounding Box class.

Constructor & Destructor Documentation

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  ) 

Copy constructor.

Parameters:
aabb AABB from which min/max vectors must be copied


Member Function Documentation

void syBR::Core::AABB::initialize ( const Vector3D min,
const Vector3D max 
)

Initialize from min and max vectors.

Parameters:
min Minimum vector
max Maximum vector

bool syBR::Core::AABB::isInside ( const Vector3D vec  )  const

Check if a vector is in the bounding box.

Parameters:
vec Vector to be checked against the AABB
Returns:
One of these:
  • true if the vector is in the AABB
  • false otherwise
A point is in the bounding box if


Member Data Documentation

Vector3D syBR::Core::AABB::m_min [private]

Minimum/maximum vector of the AABB.

Vector3D syBR::Core::AABB::m_max [private]


The documentation for this class was generated from the following files:

Copyright © 2008 by Sebastien Frippiat
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.
Last modified Tue Dec 30 17:57:33 2008