The Cuik KD-Tree Library
rectangle.h
Go to the documentation of this file.
199 double SquaredDistanceToRectangleDimension(unsigned int dim,double p,unsigned int *tp,Trectangle *b);
void RandomPointInRectangle(double *c, Trectangle *b) Returns the a random point along the selected dimensions. Definition: rectangle.c:145 unsigned int GetRectangleSplitDim(Trectangle *b) Computes the rectangle dimension for which it is better to split the rectangle. Definition: rectangle.c:344 void GetRectangleLimits(unsigned int i, double *l, double *u, Trectangle *b) Gets the limits of the rectangle along a given dimension. Definition: rectangle.c:115 double GetRectangleLowerLimit(unsigned int i, Trectangle *b) Get the lower limit. Definition: rectangle.c:101 double SquaredDistanceToRectangleDimension(unsigned int dim, double p, unsigned int *tp, Trectangle *b) Squared distance from a value to a given rectangle dimension. Definition: rectangle.c:153 void InitRectangleFromPoint(unsigned int dim, double *p, Trectangle *b) Initializes a rectangle from a point. Definition: rectangle.c:35 void SetRectangleLowerLimit(unsigned int i, double l, Trectangle *b) Set the lower limit. Definition: rectangle.c:123 void CopyRectangle(Trectangle *b_out, Trectangle *b_in) Rectangle copy operator. Definition: rectangle.c:91 double SquaredDistanceToRectangle(double t2, double *p, unsigned int *tp, Trectangle *b) Squared distance from a point to a rectangle. Definition: rectangle.c:230 void ExpandRectangle(double *p, Trectangle *b) Expands a rectangle so that it includes a given point. Definition: rectangle.c:52 double GetRectangleUpperLimit(unsigned int i, Trectangle *b) Get the upper limit. Definition: rectangle.c:108 Definition of constants and macros used in several parts of the library. void SetRectangleUpperLimit(unsigned int i, double u, Trectangle *b) Set the upper limit. Definition: rectangle.c:130 void InitRectangle(unsigned int dim, double *l, double *u, Trectangle *b) Initializes a rectangle. Definition: rectangle.c:20 unsigned int GetRectangleDim(Trectangle *b) Returns the dimension of the rectangle. Definition: rectangle.c:47 void SetRectangleLimits(unsigned int i, double l, double u, Trectangle *b) Changes a rectangle along a given dimension. Definition: rectangle.c:137 double EnlargeRectangleWithLimits(double r, Trectangle *limits, Trectangle *bIn, Trectangle *bOut) Enlarges a box remaining in a given limits. Definition: rectangle.c:68 |
Follow us!