OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
geoCoord.h
Go to the documentation of this file.
1 /*
2  * Copyright 2016-2020 Uber Technologies, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
20 #ifndef GEOCOORD_H
21 #define GEOCOORD_H
22 
23 // #include <stdbool.h>
24 // #include <stdint.h>
25 // #include <stdio.h>
26 
29 
30 // /** epsilon of ~0.1mm in degrees */
31 // #define EPSILON_DEG .000000001
32 // /** epsilon of ~0.1mm in radians */
33 // #define EPSILON_RAD (EPSILON_DEG * M_PI_180)
34 
35 // void setGeoDegs(GeoCoord* p, double latDegs, double lonDegs);
36 // double constrainLat(double lat);
37 EXTENSION_INLINE double constrainLng(double lng);
38 
39 // bool geoAlmostEqual(const GeoCoord* p1, const GeoCoord* p2);
40 // bool geoAlmostEqualThreshold(const GeoCoord* p1, const GeoCoord* p2,
41 // double threshold);
42 
43 // Internal functions
44 
45 EXTENSION_NOINLINE double _posAngleRads(double rads);
46 // void _setGeoRads(GeoCoord* p, double latRads, double lonRads);
47 EXTENSION_NOINLINE double _geoAzimuthRads(const GeoCoord(p1), const GeoCoord(p2));
49  double az,
50  double distance,
51  GeoCoord(p2));
52 
54 
55 #endif
#define GeoCoord(variable_name)
Definition: h3api.h:94
Constants used by more than one source code file.
EXTENSION_INLINE double constrainLng(double lng)
Definition: geoCoord.hpp:134
#define EXTENSION_NOINLINE
Definition: OmniSciTypes.h:28
EXTENSION_NOINLINE double _posAngleRads(double rads)
Definition: geoCoord.hpp:35
EXTENSION_NOINLINE bool _geoAzDistanceRads(const GeoCoord(p1), double az, double distance, GeoCoord(p2))
Definition: geoCoord.hpp:204
Primary H3 core library entry points.
EXTENSION_NOINLINE double _geoAzimuthRads(const GeoCoord(p1), const GeoCoord(p2))
Definition: geoCoord.hpp:187
#define EXTENSION_INLINE
Definition: OmniSciTypes.h:27