source: subversion/applications/lib/libosm/functions.h @ 34393

Last change on this file since 34393 was 11682, checked in by nienhueser, 11 years ago

No 'using xy' declarations in headers
Reorder includes with local files on top, and methods by decreasing publicity

File size: 497 bytes
Line 
1namespace OSM
2{
3
4double dist(double x1, double y1, double x2, double y2);
5double distp(double px, double py, double x1, double y1, double x2, double y2);
6double getAngle(double a, double b, double c);
7
8class Mercator;
9
10class LatLon
11{
12public:
13        double lat, lon;
14        LatLon(double lat, double lon)
15        {
16                this->lat = lat;
17                this->lon = lon;
18        }
19
20        Mercator toMercator();
21};
22
23class Mercator
24{
25public:
26        double e, n;
27        Mercator(double e, double n)
28        {
29                this->e = e;
30                this->n = n;
31        }
32
33        LatLon toLatLon();
34};
35
36}
Note: See TracBrowser for help on using the repository browser.