OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vec2d.h
Go to the documentation of this file.
1 /*
2  * Copyright 2016-2017 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 VEC2D_H
21 #define VEC2D_H
22 
24 // #include <stdbool.h>
25 
26 #define X_INDEX 0
27 #define Y_INDEX 1
28 #define Vec2d(variable_name) double variable_name[2]
29 #define Vec2dArray(variable_name, size) double variable_name[size][2]
30 // /** @struct Vec2d
31 // * @brief 2D floating-point vector
32 // */
33 // typedef struct {
34 // double x; ///< x component
35 // double y; ///< y component
36 // } Vec2d;
37 
38 // Internal functions
39 
40 EXTENSION_INLINE double _v2dMag(const Vec2d(v));
41 // void _v2dIntersect(const Vec2d* p0, const Vec2d* p1, const Vec2d* p2,
42 // const Vec2d* p3, Vec2d* inter);
43 // bool _v2dEquals(const Vec2d* p0, const Vec2d* p1);
44 
46 
47 #endif
#define EXTENSION_INLINE
Definition: heavydbTypes.h:57
#define Vec2d(variable_name)
Definition: vec2d.h:28
Primary H3 core library entry points.
EXTENSION_INLINE double _v2dMag(const Vec2d(v))
Definition: vec2d.hpp:30