OMNeT++ Simulation Library
6.0.3
|
#include <ccanvas.h>
Represents a point as (x,y) coordinates.
Public Member Functions | |
Methods. | |
Point () | |
Point (double x, double y) | |
Point | operator+ (const Point &p) const |
Point | operator- (const Point &p) const |
Point | operator* (double s) const |
Point | operator/ (double s) const |
double | operator* (const Point &p) const |
double | distanceTo (const Point &p) const |
double | getLength () const |
double | getAngle () const |
Point & | translate (double dx, double dy) |
bool | operator== (const Point &other) const |
std::string | str () const |
Public Attributes | |
Coordinates. | |
double | x = 0 |
double | y = 0 |