OverSim
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.

{
if(a.y == b.y)
return a.x < b.x;
else
return a.y < b.y;
}
std::ostream& operator<< ( std::ostream &  Stream,
const Vector2D v 
)

Definition at line 179 of file Vector2D.cc.

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