Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BoundingBox Class Reference

#include <boundingbox.h>

Collaboration diagram for BoundingBox:

Collaboration graph
[legend]
List of all members.

Public Methods

 BoundingBox (Vector3d _min=Vector3d(-INF,-INF,-INF), Vector3d _max=Vector3d(INF, INF, INF))
 Creates a bounding box with the specified min and max vectors.

string toString (void)
 Converts the bounding box to a printable string.

BoundingBox operator= (BoundingBox &)
 Sets the current bounding box to the passed one.

bool contains (const Vector3d &v)
 Checks if the bounding box contains a vector (or a point).


Protected Attributes

Vector3d min
 The min and max of the bounding box.

Vector3d max
 The min and max of the bounding box.


Constructor & Destructor Documentation

BoundingBox::BoundingBox Vector3d    _min = Vector3d(-INF,-INF,-INF),
Vector3d    _max = Vector3d(INF, INF, INF)
 

Creates a bounding box with the specified min and max vectors.

Definition at line 27 of file boundingbox.cc.

References max, and min.


Member Function Documentation

bool BoundingBox::contains const Vector3d   v [inline]
 

Checks if the bounding box contains a vector (or a point).

Definition at line 48 of file boundingbox.h.

References Vector3d::x, Vector3d::y, and Vector3d::z.

Referenced by Agent::into().

BoundingBox BoundingBox::operator= BoundingBox &   
 

Sets the current bounding box to the passed one.

Definition at line 41 of file boundingbox.cc.

References max, and min.

string BoundingBox::toString void   
 

Converts the bounding box to a printable string.

Definition at line 32 of file boundingbox.cc.

References max, min, and Vector3d::toString().

Referenced by World::World().


Member Data Documentation

Vector3d BoundingBox::max [protected]
 

The min and max of the bounding box.

Definition at line 34 of file boundingbox.h.

Referenced by BoundingBox(), operator=(), and toString().

Vector3d BoundingBox::min [protected]
 

The min and max of the bounding box.

Definition at line 34 of file boundingbox.h.

Referenced by BoundingBox(), operator=(), and toString().


The documentation for this class was generated from the following files:
Generated on Mon Jun 17 19:54:13 2002 for Svas Server by doxygen1.2.16