Parent Directory | Revision Log
Map handles overwritten coordinates
1 | harbaum | 32 | /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4 -*- */ |
2 | /* vim:set et sw=4 ts=4 cino=t0,(0: */ | ||
3 | /* | ||
4 | * converter.h | ||
5 | * Copyright (C) Marcus Bauer 2008 <marcus.bauer@gmail.com> | ||
6 | * Copyright (C) John Stowers 2009 <john.stowers@gmail.com> | ||
7 | * | ||
8 | * Contributions by | ||
9 | * Everaldo Canuto 2009 <everaldo.canuto@gmail.com> | ||
10 | * | ||
11 | * osm-gps-map.c is free software: you can redistribute it and/or modify it | ||
12 | * under the terms of the GNU General Public License as published by the | ||
13 | * Free Software Foundation, either version 3 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | * osm-gps-map.c is distributed in the hope that it will be useful, but | ||
17 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
19 | * See the GNU General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU General Public License along | ||
22 | * with this program. If not, see <http://www.gnu.org/licenses/>. | ||
23 | */ | ||
24 | |||
25 | float | ||
26 | deg2rad(float deg); | ||
27 | |||
28 | float | ||
29 | rad2deg(float rad); | ||
30 | |||
31 | int | ||
32 | lat2pixel( int zoom, | ||
33 | float lat); | ||
34 | |||
35 | int | ||
36 | lon2pixel( int zoom, | ||
37 | float lon); | ||
38 | |||
39 | float | ||
40 | harbaum | 120 | pixel2lon( int zoom, |
41 | harbaum | 32 | int pixel_x); |
42 | |||
43 | float | ||
44 | harbaum | 120 | pixel2lat( int zoom, |
45 | harbaum | 32 | int pixel_y); |