OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vec3d.h
Go to the documentation of this file.
1 /*
2  * Copyright 2018 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 VEC3D_H
21 #define VEC3D_H
22 
23 // #include "geoCoord.h"
24 
28 #define Z_INDEX 2 // x/y index defined in vec2d.h
29 #define Vec3d(variable_name) double variable_name[3]
30 #define Vec3dArray(variable_name, size) double variable_name[size][3]
31 
32 EXTENSION_NOINLINE bool _geoToVec3d(const GeoCoord(geo), Vec3d(v));
33 EXTENSION_NOINLINE double _pointSquareDist(const Vec3d(v1), const Vec3d(v2));
34 
36 
37 #endif
#define GeoCoord(variable_name)
Definition: h3api.h:94
#define EXTENSION_NOINLINE
Definition: heavydbTypes.h:58
#define Vec3d(variable_name)
Definition: vec3d.h:29
EXTENSION_NOINLINE bool _geoToVec3d(const GeoCoord(geo), Vec3d(v))
Definition: vec3d.hpp:52
EXTENSION_NOINLINE double _pointSquareDist(const Vec3d(v1), const Vec3d(v2))
Definition: vec3d.hpp:41