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

BoundingEllipse Template Class Reference

General-purpose ellipsoidal bounding box. More...

#include <boundingbox.h>

Inheritance diagram for BoundingEllipse

Inheritance graph

[legend]
Collaboration diagram for BoundingEllipse:

Collaboration graph

[legend]
List of all members.

Public Methods

 BoundingEllipse ()
 Default constructor: infinite extent. More...

 BoundingEllipse (T centerx, T centery, T radius )
 Constructor for a circular area. More...

 BoundingEllipse (T centerx, T centery, T radiusx, T radiusy )
 Constructor for an ellipsoidal area. More...

virtual bool inside (T x, T y) const
 Returns true if the given coordinates are inside the box. More...

virtual BoundingBox<T>& rotate ( T theta )
 Rotate the box by the given angle (in radians). More...


Detailed Description

template<class T = double> template class BoundingEllipse

General-purpose ellipsoidal bounding box.

For simplicity, this is just a minor variation on AARBoundingBox, but if speed is important it can be made a fully-separate class instead so that it can cache the values of the parameters needed by inside().

Definition at line 159 of file boundingbox.h.


Constructor & Destructor Documentation

template<classT = double>
BoundingEllipse<T>::BoundingEllipse<T> ( )
 

Default constructor: infinite extent.

Definition at line 162 of file boundingbox.h.

template<classT = double>
BoundingEllipse<T>::BoundingEllipse<T> ( T centerx,
T centery,
T radius )
 

Constructor for a circular area.

Definition at line 165 of file boundingbox.h.

template<classT = double>
BoundingEllipse<T>::BoundingEllipse<T> ( T centerx,
T centery,
T radiusx,
T radiusy )
 

Constructor for an ellipsoidal area.

Definition at line 169 of file boundingbox.h.


Member Function Documentation

template<classT = double>
bool BoundingEllipse<T>::inside ( T x,
T y ) const [inline, virtual]
 

Returns true if the given coordinates are inside the box.

Reimplemented from AARBoundingBox.

Definition at line 173 of file boundingbox.h.

template<classT = double>
BoundingBox< T >& BoundingEllipse<T>::rotate ( T theta ) [inline, virtual]
 

Rotate the box by the given angle (in radians).

Not implemented.

Reimplemented from AARBoundingBox.

Definition at line 194 of file boundingbox.h.


The documentation for this class was generated from the following file:
Generated at Mon Aug 21 00:31:15 2000 for RF-LISSOM by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000