Peano
WrapperC.cpp
Go to the documentation of this file.
1 #include "../EllipsoidProjection.h"
2 #include "../SphereProjection.h"
3 
4 extern "C" {
5 struct Pair {
6  double first;
7  double second;
8 };
9 
10 Pair ellipsoidTransform(const double lon, const double lat) {
11  Pair p{};
13  p.first = x;
14  p.second = y;
15  return p;
16 }
17 
18 Pair ellipsoidTransformInverse(const double x, const double y) {
19  Pair p{};
21  p.first = lon;
22  p.second = lat;
23  return p;
24 }
25 
26 Pair sphereTransform(const double lon, const double lat) {
27  Pair p{};
29  p.first = x;
30  p.second = y;
31  return p;
32 }
33 
34 Pair sphereTransformInverse(const double x, const double y) {
35  Pair p{};
37  p.first = lon;
38  p.second = lat;
39  return p;
40 }
41 }
Pair ellipsoidTransform(const double lon, const double lat)
Definition: WrapperC.cpp:10
Pair sphereTransformInverse(const double x, const double y)
Definition: WrapperC.cpp:34
Pair ellipsoidTransformInverse(const double x, const double y)
Definition: WrapperC.cpp:18
Pair sphereTransform(const double lon, const double lat)
Definition: WrapperC.cpp:26
auto inverse(const auto x, const auto y)
Inverts the Albers Equal-Area Conic projection for WGS_1984 and returns the geographic coordinates (l...
auto forward(const auto lon, const auto lat)
auto forward(const auto lon, const auto lat)
Projects geographic coordinates (longitude, latitude) onto a planar surface using the Albers Equal-Ar...
auto inverse(const auto x, const auto y)
Inverts the spherical Albers Equal-Area Conic projection and returns the geographic coordinates (long...
Definition: WrapperC.cpp:5
double second
Definition: WrapperC.cpp:7
double first
Definition: WrapperC.cpp:6