#include <geometry.h>
Definition at line 29 of file geometry.h.
Public Member Functions | |
Point (double cx=.0, double cy=.0) | |
Point (const Point &rhs) | |
Point & | operator= (const Point &rhs) |
std::ostream & | Write (std::ostream &str) const |
virtual | ~Point () |
double | Distance (const Point &p, int sign=1) const |
Public Attributes | |
double | x |
X coord. | |
double | y |
Y coord. | |
Friends | |
std::ostream & | operator<< (std::ostream &output, const struct Point &rhs) |
std::istream & | operator>> (std::istream &input, struct Point &rhs) |
bool | operator== (const Point &lhs, const Point &rhs) |
Point | ( | double | cx = .0 , |
|
double | cy = .0 | |||
) | [inline] |
Definition at line 36 of file geometry.h.
Definition at line 41 of file geometry.h.
virtual ~Point | ( | ) | [inline, virtual] |
Definition at line 84 of file geometry.h.
Definition at line 46 of file geometry.h.
Referenced by Position::operator=().
std::ostream& Write | ( | std::ostream & | str | ) | const [inline] |
double Distance | ( | const Point & | p, | |
int | sign = 1 | |||
) | const |
Euclidean point distance
std::ostream& operator<< | ( | std::ostream & | output, | |
const struct Point & | rhs | |||
) | [friend] |
Definition at line 56 of file geometry.h.
std::istream& operator>> | ( | std::istream & | input, | |
struct Point & | rhs | |||
) | [friend] |
Definition at line 65 of file geometry.h.
Definition at line 71 of file geometry.h.
double x |
X coord.
Definition at line 32 of file geometry.h.
Referenced by Arena::Arena(), Arena::Private::cToA(), operator=(), readCoreInfo(), Vector::Vector(), and Write().
double y |
Y coord.
Definition at line 34 of file geometry.h.
Referenced by Arena::Arena(), Arena::Private::cToA(), operator=(), readCoreInfo(), Vector::Vector(), and Write().