Point Struct Reference

#include <Path.hpp>

List of all members.


Detailed Description

This class describes a point as an (x,y) coordinate.

Previously this had a reference for x and y to first and second, but that seems to be a memory waste. So those were replaced with methods x() and y().

Definition at line 54 of file Path.hpp.

Public Member Functions

 Point (double ix=0.0, double iy=0.0)
 Constructor.
 Point (const Point &p)
 Copy Constructor.
 Point (const std::pair< double, double > &o)
 Conversion constructor.
double & x ()
 Get a reference to x value.
const double & x () const
 Get a constant reference to x value.
double & y ()
 Get a reference to y value.
const double & y () const
 Get a constant reference to y value.


Constructor & Destructor Documentation

Point double  ix = 0.0,
double  iy = 0.0
[inline]
 

Constructor.

Definition at line 57 of file Path.hpp.

Point const Point p  )  [inline]
 

Copy Constructor.

Definition at line 63 of file Path.hpp.

References x(), and y().

Point const std::pair< double, double > &  o  )  [inline]
 

Conversion constructor.

Definition at line 69 of file Path.hpp.


Member Function Documentation

const double& x  )  const [inline]
 

Get a constant reference to x value.

Definition at line 78 of file Path.hpp.

double& x  )  [inline]
 

Get a reference to x value.

Definition at line 75 of file Path.hpp.

Referenced by Point().

const double& y  )  const [inline]
 

Get a constant reference to y value.

Definition at line 84 of file Path.hpp.

double& y  )  [inline]
 

Get a reference to y value.

Definition at line 81 of file Path.hpp.

Referenced by Point().


The documentation for this struct was generated from the following file:
Generated on Tue Feb 7 03:31:25 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1