The Cuik KD-Tree Library
vector.c File Reference Implementation of the basic operations between points. More... ![]() Go to the source code of this file.
Detailed DescriptionImplementation of the basic operations between points.
Definition in file vector.c. Function Documentation
Computes the squared distance between two points given as a vector with a given size and considering the topology for each dimension. The squared distance is only fully computed for points closer than a given threshold. This accelerates the distance computations.
Definition at line 17 of file vector.c. References M_PI, PI2PI, and TOPOLOGY_S. Referenced by AddPoint2KDtree(), main(), SearchInBallKDtree(), and SearchKDtree(). ![]()
Computes the norm of a vector.
Definition at line 45 of file vector.c. Referenced by VectorNormalize(). ![]()
Defines a vector with norm 1.
Definition at line 58 of file vector.c. References VectorNorm(). Referenced by main(). ![]() ![]() |
Follow us!