GeoDesk  0.1.3
 All Classes Namespaces Files Functions Typedefs Pages
Public Member Functions | List of all members
Projection::Point2D Class Reference

Class for 2D points. More...

#include <projection.hpp>

Collaboration diagram for Projection::Point2D:
Collaboration graph

Public Member Functions

 Point2D (double _x=0., double _y=0.)
 Construct a point with two double. More...
 
 Point2D (const Point2D &p)
 Copy constructor. More...
 
 ~Point2D ()
 Destructor.
 
double x () const
 Access to abscissa, modification is not possible.
 
double & x ()
 Access to abscissa, modification is possible.
 
double y () const
 Access to ordinate, modification is not possible.
 
double & y ()
 Access to ordinate, modification is possible.
 
Point2Doperator= (const Point2D &p)
 Copy operator. More...
 

Detailed Description

Class for 2D points.

Definition at line 23 of file projection.hpp.

Constructor & Destructor Documentation

Projection::Point2D::Point2D ( double  _x = 0.,
double  _y = 0. 
)
inline

Construct a point with two double.

Parameters
_xAbscissa.
_yOrdinate.

Definition at line 30 of file projection.hpp.

Projection::Point2D::Point2D ( const Point2D p)
inline

Copy constructor.

Parameters
pPoint2D to be copied.

Definition at line 36 of file projection.hpp.

Member Function Documentation

Point2D& Projection::Point2D::operator= ( const Point2D p)
inline

Copy operator.

Parameters
pPoint2D to be copied.
Returns
A reference to current point.

Definition at line 58 of file projection.hpp.


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