MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
projection.h
Go to the documentation of this file.
1
5
6#ifndef MAPLIBRE_NATIVE_C_PROJECTION_H
7#define MAPLIBRE_NATIVE_C_PROJECTION_H
8
9#include <stddef.h>
10#include <stdint.h>
11
12#include "base.h"
13#include "map.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
46 const mln_map_view* view,
47 mln_map_projection* out_projection MLN_BINDING("direction=out"),
48 mln_diagnostic* out_diagnostic
49) MLN_NOEXCEPT;
50
66 mln_map_projection projection, mln_diagnostic* out_diagnostic
67) MLN_NOEXCEPT;
68
83 mln_map_projection projection,
84 mln_camera_options* out_camera MLN_BINDING("direction=out"),
85 mln_diagnostic* out_diagnostic
86) MLN_NOEXCEPT;
87
104 mln_map_projection projection, const mln_camera_options* camera,
105 mln_diagnostic* out_diagnostic
106) MLN_NOEXCEPT;
107
124 mln_map_projection projection, mln_lat_lng coordinate,
125 mln_screen_point* out_point MLN_BINDING("direction=out"),
126 mln_diagnostic* out_diagnostic
127) MLN_NOEXCEPT;
128
145 mln_map_projection projection, mln_screen_point point,
146 mln_lat_lng* out_coordinate MLN_BINDING("direction=out"),
147 mln_diagnostic* out_diagnostic
148) MLN_NOEXCEPT;
149
166 mln_map_projection projection, mln_screen_point point,
167 mln_lat_lng* out_coordinate MLN_BINDING("direction=out"),
168 mln_diagnostic* out_diagnostic
169) MLN_NOEXCEPT;
170
192 mln_map_projection projection,
193 const mln_lat_lng* coordinates MLN_BINDING("length=coordinate_count"),
194 size_t coordinate_count,
195 mln_screen_point* out_points
196 MLN_BINDING("direction=out;length=coordinate_count"),
197 mln_diagnostic* out_diagnostic
198) MLN_NOEXCEPT;
199
220 mln_map_projection projection,
221 const mln_screen_point* points MLN_BINDING("length=point_count"),
222 size_t point_count,
223 mln_lat_lng* out_coordinates MLN_BINDING("direction=out;length=point_count"),
224 mln_diagnostic* out_diagnostic
225) MLN_NOEXCEPT;
226
248 mln_map_projection projection,
249 const mln_screen_point* points MLN_BINDING("length=point_count"),
250 size_t point_count,
251 mln_lat_lng* out_coordinates MLN_BINDING("direction=out;length=point_count"),
252 mln_diagnostic* out_diagnostic
253) MLN_NOEXCEPT;
254
271 mln_map_projection projection, double latitude,
272 double* out_meters_per_pixel MLN_BINDING("direction=out"),
273 mln_diagnostic* out_diagnostic
274) MLN_NOEXCEPT;
275
286 mln_lat_lng coordinate,
287 mln_projected_meters* out_meters MLN_BINDING("direction=out"),
288 mln_diagnostic* out_diagnostic
289) MLN_NOEXCEPT;
290
302 mln_lat_lng* out_coordinate MLN_BINDING("direction=out"),
303 mln_diagnostic* out_diagnostic
304) MLN_NOEXCEPT;
305
306#ifdef __cplusplus
307}
308#endif
309
310#endif // MAPLIBRE_NATIVE_C_PROJECTION_H
uint64_t mln_map_projection
Definition base.h:146
mln_status
Definition base.h:61
#define MLN_BINDING(contract)
Definition binding.h:17
mln_status mln_projected_meters_for_lat_lng(mln_lat_lng coordinate, mln_projected_meters *out_meters, mln_diagnostic *out_diagnostic)
mln_status mln_map_projection_create(const mln_map_view *view, mln_map_projection *out_projection, mln_diagnostic *out_diagnostic)
mln_status mln_map_projection_set_camera(mln_map_projection projection, const mln_camera_options *camera, mln_diagnostic *out_diagnostic)
mln_status mln_map_projection_release(mln_map_projection projection, mln_diagnostic *out_diagnostic)
mln_status mln_map_projection_pixel_for_lat_lng(mln_map_projection projection, mln_lat_lng coordinate, mln_screen_point *out_point, mln_diagnostic *out_diagnostic)
mln_status mln_map_projection_lat_lngs_for_pixels_unwrapped(mln_map_projection projection, const mln_screen_point *points, size_t point_count, mln_lat_lng *out_coordinates, mln_diagnostic *out_diagnostic)
mln_status mln_map_projection_lat_lngs_for_pixels(mln_map_projection projection, const mln_screen_point *points, size_t point_count, mln_lat_lng *out_coordinates, mln_diagnostic *out_diagnostic)
mln_status mln_map_projection_pixels_for_lat_lngs(mln_map_projection projection, const mln_lat_lng *coordinates, size_t coordinate_count, mln_screen_point *out_points, mln_diagnostic *out_diagnostic)
mln_status mln_map_projection_get_camera(mln_map_projection projection, mln_camera_options *out_camera, mln_diagnostic *out_diagnostic)
mln_status mln_map_projection_meters_per_pixel_at_latitude(mln_map_projection projection, double latitude, double *out_meters_per_pixel, mln_diagnostic *out_diagnostic)
mln_status mln_map_projection_lat_lng_for_pixel(mln_map_projection projection, mln_screen_point point, mln_lat_lng *out_coordinate, mln_diagnostic *out_diagnostic)
mln_status mln_lat_lng_for_projected_meters(mln_projected_meters meters, mln_lat_lng *out_coordinate, mln_diagnostic *out_diagnostic)
mln_status mln_map_projection_lat_lng_for_pixel_unwrapped(mln_map_projection projection, mln_screen_point point, mln_lat_lng *out_coordinate, mln_diagnostic *out_diagnostic)
Definition map.h:238
Definition base.h:100
Definition map.h:230
Definition map.h:985
Definition map.h:924
Definition map.h:216