Point Struct Reference

#include <VastDefs.h>

List of all members.


Detailed Description

Some structures needed for building a voronoi diagram and maintaining the overlays neighbors.


Public Member Functions

 Point ()

Public Attributes

bool reached
int x
int y
double x
double y

Friends

std::ostream & operator<< (std::ostream &Stream, const Point p)
bool operator< (const Point a, const Point b)


Constructor & Destructor Documentation

Point::Point (  ) 

00027 {
00028     x = 0.0;
00029     y = 0.0;
00030 }


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  Stream,
const Point  p 
) [friend]

00033 {
00034     return Stream << "Position: [" << p.x << ", " << p.y << "]";
00035 }

bool operator< ( const Point  a,
const Point  b 
) [friend]

00038 {
00039     if(a.y == b.y) return a.x < b.x;
00040     else return a.y < b.y;
00041 }


Member Data Documentation

bool Point::reached

int Point::x

int Point::y

double Point::x

double Point::y


The documentation for this struct was generated from the following files:
Generated on Tue Jul 24 16:51:19 2007 for ITM OverSim by  doxygen 1.5.1