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

Public Attributes

Coordinates.
double x = 0
 
double y = 0
 

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