The Cuik KD-Tree Library
rectangle.c
Go to the documentation of this file.
153 double SquaredDistanceToRectangleDimension(unsigned int dim,double p,unsigned int *tp,Trectangle *b)
double GetRectangleUpperLimit(unsigned int i, Trectangle *b) Get the upper limit. Definition: rectangle.c:108 void SetRectangleLowerLimit(unsigned int i, double l, Trectangle *b) Set the lower limit. Definition: rectangle.c:123 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 #define NEWZ(_var, _n, _type) Allocates memory space and initializes to zero. Definition: definitions.h:98 double EnlargeRectangleWithLimits(double r, Trectangle *limits, Trectangle *bIn, Trectangle *bOut) Enlarges a box remaining in a given limits. Definition: rectangle.c:68 unsigned int GetRectangleDim(Trectangle *b) Returns the dimension of the rectangle. Definition: rectangle.c:47 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 void SetRectangleUpperLimit(unsigned int i, double u, Trectangle *b) Set the upper limit. Definition: rectangle.c:130 unsigned int GetRectangleSplitDim(Trectangle *b) Computes the rectangle dimension for which it is better to split the rectangle. Definition: rectangle.c:344 Definition of the Trectangle type and the associated functions. Definition of constants and macros used in several parts of the library. void CopyRectangle(Trectangle *b_out, Trectangle *b_in) Rectangle copy operator. Definition: rectangle.c:91 void SetRectangleLimits(unsigned int i, double l, double u, Trectangle *b) Changes a rectangle along a given dimension. Definition: rectangle.c:137 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 RandomPointInRectangle(double *c, Trectangle *b) Returns the a random point along the selected dimensions. Definition: rectangle.c:145 void InitRectangleFromPoint(unsigned int dim, double *p, Trectangle *b) Initializes a rectangle from a point. Definition: rectangle.c:35 Definition of basic randomization functions. void InitRectangle(unsigned int dim, double *l, double *u, Trectangle *b) Initializes a rectangle. Definition: rectangle.c:20 double GetRectangleLowerLimit(unsigned int i, Trectangle *b) Get the lower limit. Definition: rectangle.c:101 |
Follow us!