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
27 const mln_map_view* view,
28 mln_map_projection* out_projection MLN_BINDING("direction=out"),
29 mln_diagnostic* out_diagnostic
30) MLN_NOEXCEPT;
31
34 mln_map_projection projection
35) MLN_NOEXCEPT;
36
42
45 mln_map_projection projection,
46 mln_map_projection_camera_result* out_result MLN_BINDING("direction=out"),
47 mln_diagnostic* out_diagnostic
48) MLN_NOEXCEPT;
49
56 mln_map_projection projection, const mln_camera_options* camera,
57 mln_diagnostic* out_diagnostic
58) MLN_NOEXCEPT;
59
66 mln_map_projection projection, mln_lat_lng coordinate,
67 mln_screen_point* out_point MLN_BINDING("direction=out"),
68 mln_diagnostic* out_diagnostic
69) MLN_NOEXCEPT;
70
77 mln_map_projection projection, mln_screen_point point,
78 mln_lat_lng* out_coordinate MLN_BINDING("direction=out"),
79 mln_diagnostic* out_diagnostic
80) MLN_NOEXCEPT;
81
89 mln_map_projection projection, mln_screen_point point,
90 mln_lat_lng* out_coordinate MLN_BINDING("direction=out"),
91 mln_diagnostic* out_diagnostic
92) MLN_NOEXCEPT;
93
102 mln_map_projection projection,
103 const mln_lat_lng* coordinates MLN_BINDING("length=coordinate_count"),
104 size_t coordinate_count,
105 mln_screen_point* out_points
106 MLN_BINDING("direction=out;length=coordinate_count"),
107 mln_diagnostic* out_diagnostic
108) MLN_NOEXCEPT;
109
118 mln_map_projection projection,
119 const mln_screen_point* points MLN_BINDING("length=point_count"),
120 size_t point_count,
121 mln_lat_lng* out_coordinates MLN_BINDING("direction=out;length=point_count"),
122 mln_diagnostic* out_diagnostic
123) MLN_NOEXCEPT;
124
133 mln_map_projection projection,
134 const mln_screen_point* points MLN_BINDING("length=point_count"),
135 size_t point_count,
136 mln_lat_lng* out_coordinates MLN_BINDING("direction=out;length=point_count"),
137 mln_diagnostic* out_diagnostic
138) MLN_NOEXCEPT;
139
147 mln_map_projection projection, double latitude,
148 double* out_meters_per_pixel MLN_BINDING("direction=out"),
149 mln_diagnostic* out_diagnostic
150) MLN_NOEXCEPT;
151
154 mln_lat_lng coordinate,
155 mln_projected_meters* out_meters MLN_BINDING("direction=out"),
156 mln_diagnostic* out_diagnostic
157) MLN_NOEXCEPT;
158
162 mln_lat_lng* out_coordinate MLN_BINDING("direction=out"),
163 mln_diagnostic* out_diagnostic
164) MLN_NOEXCEPT;
165
166#ifdef __cplusplus
167}
168#endif
169
170#endif // MAPLIBRE_NATIVE_C_PROJECTION_H
uint64_t mln_map_projection
Definition base.h:132
mln_status
Definition base.h:41
mln_status mln_map_projection_get_camera(mln_map_projection projection, mln_map_projection_camera_result *out_result, mln_diagnostic *out_diagnostic)
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_pixel_for_lat_lng(mln_map_projection projection, mln_lat_lng coordinate, mln_screen_point *out_point, mln_diagnostic *out_diagnostic)
void mln_map_projection_release(mln_map_projection projection)
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_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:257
Definition map.h:285
Definition base.h:84
Definition map.h:251
Definition projection.h:38
mln_camera camera
Definition projection.h:40
uint32_t size
Definition projection.h:39
Definition map.h:1191
Definition map.h:1135
Definition map.h:237