Public Member Functions | Data Fields
geo::Point Class Reference

Represents geospatial point with latitude and longitude specified in degrees. More...

#include <Point.h>

Public Member Functions

 Point (double lat=0, double lon=0)
bool operator== (Point const &other) const
 same as close(other, 0.0000001)
bool operator!= (Point const &other) const
bool operator<= (Point const &other) const
bool operator>= (Point const &other) const
bool operator> (Point const &other) const
bool operator< (Point const &other) const
 lexicographical ordering of points (used only to be able to store them in sets)
bool before (Point const &other, double tolerance) const
bool close (Point const &other, double tolerance) const

Data Fields

double lat
double lon

Detailed Description

Represents geospatial point with latitude and longitude specified in degrees.

Definition at line 18 of file Point.h.


Constructor & Destructor Documentation

geo::Point::Point ( double  lat = 0,
double  lon = 0 
)

Definition at line 16 of file Point.cpp.


Member Function Documentation

bool geo::Point::before ( Point const &  other,
double  tolerance 
) const

Definition at line 52 of file Point.cpp.

bool geo::Point::close ( Point const &  other,
double  tolerance 
) const

Definition at line 61 of file Point.cpp.

bool geo::Point::operator!= ( Point const &  other) const

Definition at line 27 of file Point.cpp.

bool geo::Point::operator< ( Point const &  other) const

lexicographical ordering of points (used only to be able to store them in sets)

Parameters:
other
Returns:

Definition at line 47 of file Point.cpp.

bool geo::Point::operator<= ( Point const &  other) const

Definition at line 32 of file Point.cpp.

bool geo::Point::operator== ( Point const &  other) const

same as close(other, 0.0000001)

Parameters:
other
Returns:

Definition at line 22 of file Point.cpp.

bool geo::Point::operator> ( Point const &  other) const

Definition at line 42 of file Point.cpp.

bool geo::Point::operator>= ( Point const &  other) const

Definition at line 37 of file Point.cpp.


Field Documentation

Definition at line 22 of file Point.h.

Definition at line 23 of file Point.h.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines