libhomegear-base  0.7
Base library for Homegear and Homegear family modules.
BaseLib::Math::Point2D Class Reference

Class defining a point in 2D space with numbers of type double. More...

#include <Math.h>

Public Member Functions

 Point2D ()
 
 Point2D (const std::string &s)
 Constructor converting a coordinate string with coordinates seperated by ";" (i. More...
 
 Point2D (double x, double y)
 
virtual ~Point2D ()
 
std::string toString ()
 

Public Attributes

double x = 0
 
double y = 0
 

Detailed Description

Class defining a point in 2D space with numbers of type double.

Constructor & Destructor Documentation

§ Point2D() [1/3]

BaseLib::Math::Point2D::Point2D ( )
inline

§ Point2D() [2/3]

BaseLib::Math::Point2D::Point2D ( const std::string &  s)

Constructor converting a coordinate string with coordinates seperated by ";" (i.

e. "0.3613;0.162").

§ Point2D() [3/3]

BaseLib::Math::Point2D::Point2D ( double  x,
double  y 
)
inline

§ ~Point2D()

virtual BaseLib::Math::Point2D::~Point2D ( )
inlinevirtual

Member Function Documentation

§ toString()

std::string BaseLib::Math::Point2D::toString ( )
inline

Member Data Documentation

§ x

double BaseLib::Math::Point2D::x = 0

§ y

double BaseLib::Math::Point2D::y = 0

The documentation for this class was generated from the following files: