OmniSciDB
a5dc49c757
|
3D floating point vector functions. More...
Go to the source code of this file.
Macros | |
#define | Z_INDEX 2 |
#define | Vec3d(variable_name) double variable_name[3] |
#define | Vec3dArray(variable_name, size) double variable_name[size][3] |
Functions | |
EXTENSION_NOINLINE bool | _geoToVec3d (const GeoCoord(geo), Vec3d(v)) |
EXTENSION_NOINLINE double | _pointSquareDist (const Vec3d(v1), const Vec3d(v2)) |
3D floating point vector functions.
Definition in file vec3d.h.
#define Vec3d | ( | variable_name | ) | double variable_name[3] |
Definition at line 29 of file vec3d.h.
Referenced by _geoToHex2d().
#define Vec3dArray | ( | variable_name, | |
size | |||
) | double variable_name[size][3] |
#define Z_INDEX 2 |
Definition at line 28 of file vec3d.h.
Referenced by _geoToVec3d(), and _pointSquareDist().
EXTENSION_NOINLINE bool _geoToVec3d | ( | const | GeoCoordgeo, |
Vec3d(v) | |||
) |
Calculate the 3D coordinate on unit sphere from the latitude and longitude.
geo | The latitude and longitude of the point. |
v | The 3D coordinate of the point. |
Definition at line 52 of file vec3d.hpp.
References LAT_INDEX, LON_INDEX, X_INDEX, Y_INDEX, and Z_INDEX.
Referenced by _geoToHex2d().
EXTENSION_NOINLINE double _pointSquareDist | ( | const | Vec3dv1, |
const | Vec3dv2 | ||
) |
Calculate the square of the distance between two 3D coordinates.
v1 | The first 3D coordinate. |
v2 | The second 3D coordinate. |
Definition at line 41 of file vec3d.hpp.
References _square(), X_INDEX, Y_INDEX, and Z_INDEX.
Referenced by _geoToHex2d().