OverSim
QuonAOI Class Reference

QuonP Definitions. More...

#include <QuonHelper.h>

Public Member Functions

 QuonAOI (bool useSquareMetric=false)
 QuonAOI (Vector2D center, double radius, bool useSquareMetric=false)
void resize (double radius)
bool collide (const Vector2D p) const

Public Attributes

Vector2D center
double radius
bool useSquareMetric

Friends

std::ostream & operator<< (std::ostream &Stream, const QuonAOI &aoi)

Detailed Description

QuonP Definitions.

Definition at line 33 of file QuonHelper.h.

Constructor & Destructor Documentation

QuonAOI::QuonAOI ( bool  useSquareMetric = false)

Definition at line 27 of file QuonHelper.cc.

QuonAOI::QuonAOI ( Vector2D  center,
double  radius,
bool  useSquareMetric = false 
)

Definition at line 33 of file QuonHelper.cc.

{
this->center = center;
this->radius = radius;
}

Member Function Documentation

bool QuonAOI::collide ( const Vector2D  p) const

Definition at line 45 of file QuonHelper.cc.

Referenced by Quon::classifySites().

{
{
return true;
}
{
return true;
}
return false;
}
void QuonAOI::resize ( double  radius)

Definition at line 40 of file QuonHelper.cc.

{
this->radius = radius;
}

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  Stream,
const QuonAOI aoi 
)
friend

Definition at line 58 of file QuonHelper.cc.

{
return Stream << aoi.center << " - " << aoi.radius;
}

Member Data Documentation

Vector2D QuonAOI::center

Definition at line 40 of file QuonHelper.h.

Referenced by collide(), operator<<(), and QuonAOI().

double QuonAOI::radius

Definition at line 41 of file QuonHelper.h.

Referenced by collide(), operator<<(), QuonAOI(), and resize().

bool QuonAOI::useSquareMetric

Definition at line 42 of file QuonHelper.h.

Referenced by collide(), and QuonAOI().


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