Vector2D.cc File Reference

#include <Vector2D.h>
#include <algorithm>

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)

Detailed Description

Author:
Helge Backhaus

Definition in file Vector2D.cc.


Function Documentation

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

Definition at line 171 of file Vector2D.cc.

00172 {
00173     if(a.y == b.y)
00174         return a.x < b.x;
00175     else
00176         return a.y < b.y;
00177 }

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

Definition at line 179 of file Vector2D.cc.

00180 {
00181     return Stream << std::fixed << "[" << v.x << ", " << v.y << "]";
00182 }

Generated on Wed May 26 16:21:15 2010 for OverSim by  doxygen 1.6.3