#include <coord.h>
Inheritance diagram for Coord:
Public Member Functions | |
void | translate (INT32 thatX, INT32 thatY) |
tranlates a Coord by thatX and thatY. | |
BOOL | operator== (const Coord &) const |
BOOL | operator!= (const Coord &) const |
double | Distance (const Coord &) const |
Accurate distance function. | |
Coord (INT32 x1, INT32 y1) | |
Coord () | |
Public Attributes | |
INT32 | x |
INT32 | y |
Friends | |
Coord | operator- (const Coord &) |
Definition at line 118 of file coord.h.
|
Definition at line 133 of file coord.h.
|
|
Definition at line 134 of file coord.h.
|
|
Accurate distance function.
Definition at line 120 of file coord.cpp. 00121 { 00122 double dx = (double) (this->x-Coord.x); 00123 double dy = (double) (this->y-Coord.y); 00124 double sumsqrs = (dx*dx)+(dy*dy); 00125 00126 return (sqrt(sumsqrs)); 00127 }
|
|
Definition at line 181 of file coord.h.
|
|
Definition at line 174 of file coord.h.
|
|
tranlates a Coord by thatX and thatY.
Definition at line 155 of file coord.h.
|
|
Definition at line 163 of file coord.h. 00164 { 00165 Coord result; 00166 00167 result.x = -input.x; 00168 result.y = -input.y; 00169 return result; 00170 }
|
|
|
|
|