Operational Research Library  1.0
Public Member Functions | List of all members
operational_research::CoordinatesHelper Class Reference

#include <CoordinatesHelper.h>

Collaboration diagram for operational_research::CoordinatesHelper:
Collaboration graph

Public Member Functions

 CoordinatesHelper (double x=0, double y=0)
 Constructor for coordinates. More...
 
double getX () const
 Getter for x coordinate. More...
 
double getY () const
 Getter for y coordinate. More...
 
double distance (CoordinatesHelper other)
 Computes euclidian distance between this coordinates and other coordinates. More...
 

Detailed Description

Author
Milan Hlinak
Date
04/14/15

Constructor & Destructor Documentation

operational_research::CoordinatesHelper::CoordinatesHelper ( double  x = 0,
double  y = 0 
)

Constructor for coordinates.

Parameters
xx coordinate.
yy coordinate.

Member Function Documentation

double operational_research::CoordinatesHelper::distance ( CoordinatesHelper  other)

Computes euclidian distance between this coordinates and other coordinates.

Parameters
otherOther coordinates.
Returns
Euclidian distance between this coordinates and other coordinates.
double operational_research::CoordinatesHelper::getX ( ) const
inline

Getter for x coordinate.

Returns
x coordinate.
double operational_research::CoordinatesHelper::getY ( ) const
inline

Getter for y coordinate.

Returns
y coordinate.

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