Draw2D
drawNS::Point2D Class Reference

Point in 2D Class represents point in 2D. More...

#include <Draw2D_api_interface.hh>

Public Member Functions

 Point2D ()=delete
 deleted non-parametric constructor to force using parametric.
 
 Point2D (double x, double y)
 Constructor. More...
 
const double & operator[] (uint ind) const
 Acess operator. More...
 
double & operator[] (uint ind)
 Acess operator. More...
 

Detailed Description

Point in 2D Class represents point in 2D.

Constructor & Destructor Documentation

drawNS::Point2D::Point2D ( double  x,
double  y 
)
inline

Constructor.

Parameters
x- x coord.
y- y coord.

Member Function Documentation

const double& drawNS::Point2D::operator[] ( uint  ind) const
inline

Acess operator.

Parameters
ind- 0 for x coord, 1 for y.
Returns
value of coord.
double& drawNS::Point2D::operator[] ( uint  ind)
inline

Acess operator.

Parameters
ind- 0 for x coord, 1 for y.
Returns
reference to coord.

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