Vector2D.cc File Reference


Detailed Description

Author:
Helge Backhaus

Definition in file Vector2D.cc.

#include <Vector2D.h>

Go to the source code of this file.

Functions

bool operator< (const Vector2D &a, const Vector2D &b)
std::ostream & operator<< (std::ostream &Stream, const Vector2D &v)


Function Documentation

bool operator< ( const Vector2D &  a,
const Vector2D &  b 
)

Definition at line 144 of file Vector2D.cc.

00145 {
00146     if(a.y == b.y)
00147         return a.x < b.x;
00148     else
00149         return a.y < b.y;
00150 }

std::ostream& operator<< ( std::ostream &  Stream,
const Vector2D &  v 
)

Definition at line 152 of file Vector2D.cc.

00153 {
00154     return Stream << std::fixed << "[" << v.x << ", " << v.y << "]";
00155 }


Generated on Wed Mar 25 16:32:51 2009 for OverSim by  doxygen 1.5.5