Public Methods |
|
| Coordinate () |
|
| Coordinate (int I, int J) |
|
| Coordinate (int a) |
|
const Coordinate & | operator= (const Coordinate &c) |
Public Attributes |
|
int | i |
|
int | j |
Friends |
|
int | operator== (const Coordinate &a, const Coordinate &b) |
|
float | distance2 (const Coordinate &a) |
|
float | distance (const Coordinate &a) |
|
Coordinate | operator- (const Coordinate &a, const Coordinate &b) |
|
Coordinate | operator+ (const Coordinate &a, const Coordinate &b) |
|
ostream & | operator<< (ostream &os, const Coordinate &point) |
|
istream & | operator>> (istream &os, Coordinate &point) |