OmniSciDB
a5dc49c757
|
Go to the source code of this file.
Functions | |
EXTENSION_INLINE double | _square (double x) |
EXTENSION_NOINLINE double | _pointSquareDist (const Vec3d(v1), const Vec3d(v2)) |
EXTENSION_NOINLINE bool | _geoToVec3d (const GeoCoord(geo), Vec3d(v)) |
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().
EXTENSION_INLINE double _square | ( | double | x | ) |
Square of a number
x | The input number. |
Definition at line 30 of file vec3d.hpp.
Referenced by _pointSquareDist().