OMNeT++ Simulation Library  5.6.1
cFigure::Point Struct Reference

#include <ccanvas.h>

Description

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
 
Pointtranslate (double dx, double dy)
 
bool operator== (const Point &other) const
 
std::string str () const
 

Public Attributes

Coordinates.
double x
 
double y
 

The documentation for this struct was generated from the following file: