The Cuik KD-Tree Library
vector.c File Reference Implementation of the basic operations between points. More...
Include dependency graph for vector.c:
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().
Here is the caller graph for this function:
Computes the norm of a vector.
Definition at line 45 of file vector.c. Referenced by VectorNormalize().
Here is the caller graph for this function:
Defines a vector with norm 1.
Definition at line 58 of file vector.c. References VectorNorm(). Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
Follow us!