box.h
Go to the documentation of this file.
681 double SquaredDistanceToBoxDimensionTopology(unsigned int dim,double p,unsigned int *tp,Tbox *b);
Definition of the boolean type. double GetBoxDiagonal(boolean *used, Tbox *b) Computes the diagonal of a (sub-)box. Definition: box.c:654 Definition of the Tvariable_set type and the associated functions. unsigned int GetBoxBufferSize(Tbox *b) Returns the size of a box when converted to an array of doubles. Definition: box.c:76 boolean IsPunctualBox(boolean *used, double epsilon, Tbox *b) Checks if a (sub-)box is (almost) punctual. Definition: box.c:566 boolean BoxInclusion(boolean *used, Tbox *b1, Tbox *b2) Checks if a (sub-)box is fully included in another box. Definition: box.c:586 boolean CmpBoxDepthFirst(void *b1, void *b2, void *userData) Determines which box to explore first in depth first mode. Definition: box.c:1105 Tinterval * GetBoxInterval(unsigned int n, Tbox *b) Returns a pointer to one of the intervals defining the box. Definition: box.c:270 void SplitBox(unsigned int n, double r, Tbox *b1, Tbox *b2, Tbox *b) Splits a box. Definition: box.c:1040 double SquaredDistancePointToBoxTopology(double t, double *p, unsigned int *tp, Tbox *b) Squared distance from a point to a box. Definition: box.c:833 double GetBoxMaxSizeVarSet(Tvariable_set *vars, Tbox *b) Computes the size of the box. Definition: box.c:615 double SquaredDistanceToBoxDimensionTopology(unsigned int dim, double p, unsigned int *tp, Tbox *b) Squared distance from a value to a given box dimension. Definition: box.c:758 void BoxUnion(boolean *used, Tbox *b1, Tbox *b2, Tbox *b_out) Computes the box union of two given boxes. Definition: box.c:314 Tinterval * GetBoxIntervals(Tbox *b) Returns a pointer to the array of intervals defining the box. Definition: box.c:284 void SetBoxIntervals(Tinterval *is, Tbox *b) Replaces the box intervals with a new set. Definition: box.c:253 boolean BoxesIntersection(boolean *used, Tbox *b1, Tbox *b2, Tbox *bout) Computes the box intersection of two given boxes. Definition: box.c:293 double GetBoxCenterDistance(boolean *used, Tbox *b1, Tbox *b2) Computes distance between the center of two (sub-)boxes. Definition: box.c:715 boolean PointInBoxTopology(boolean *used, boolean update, unsigned int n, double *v, double tol, unsigned int *tp, Tbox *b) Checks if a point is included in a(sub-) box. Definition: box.c:350 void GetBoxCenter(boolean *used, double *c, Tbox *b) Returns the box center along the selected dimensions. Definition: box.c:697 void InitBoxFromPoint(unsigned int dim, double *p, Tbox *b) Initializes a box from a point. Definition: box.c:43 boolean CmpBoxBreadthFirst(void *b1, void *b2, void *userData) Determines which box to explore first in breadth first mode. Definition: box.c:1110 double GetBoxMinSizeVarSet(Tvariable_set *vars, Tbox *b) Computes the minimum size of the box. Definition: box.c:633 void ExpandBox(double *p, Tbox *b) Expands a box so that it includes a given point. Definition: box.c:67 void Box2Buffer(unsigned int c, unsigned int n, double *buffer, Tbox *b) Converts a box into an array of doubles. Definition: box.c:81 unsigned int GetBoxSplitDim(boolean *used, Tbox *b) Computes the box dimension for which it is better to split the box. Definition: box.c:1030 Definition of the Tvector type and the associated functions. unsigned int OutOfBoxTopology(boolean *used, unsigned int n, double *v, unsigned int *tp, signed int *s, Tbox *b) Determines the violated box limit. Definition: box.c:421 void AddMargin2Box(double m, Tbox *b) Adds a margin to all dimensions of a box. Definition: box.c:1093 void SetBoxInterval(unsigned int n, Tinterval *is, Tbox *b) Replaces a particular interval in a box. Definition: box.c:259 void RandomPointInBox(boolean *used, double *c, Tbox *b) Returns the a random point along the selected dimensions. Definition: box.c:682 boolean PointInBox(boolean *used, unsigned int n, double *v, double tol, Tbox *b) Checks if a point is included in a(sub-) box. Definition: box.c:332 unsigned int GetBoxMaxDim(boolean *used, Tbox *b) The dimension of the (sub-)box along which the box has maximum size. Definition: box.c:1000 double DistanceToSubBoxCenter(boolean *used, Tvector *v, Tbox *b) Computes the distance from a point to the center of a (sub-)box. Definition: box.c:542 void EnlargeBox(double lo, double uo, Tbox *b) Enlarges all the intervals of a box. Definition: box.c:59 boolean PointInSubBox(boolean *used, Tvector *v, double tol, Tbox *b) Checks if a point is included in a (sub-)box. Definition: box.c:521 void SetBoxSubset(boolean *used, Tbox *bset, Tbox *b) Changes a sub-set of ranges in a given box. Definition: box.c:238 void CopyBoxSubset(boolean *used, void *b_out, void *b_in) Creates a box from a sub-set of a given box. Definition: box.c:210 void PrintBoxSubset(FILE *f, boolean *used, char **varNames, Tbox *b) Prints a (sub-)box. Definition: box.c:1138 double GetBoxSumSide(boolean *used, Tbox *b) Computes the sum of the sides of the box. Definition: box.c:974 void Buffer2Box(unsigned int *c, unsigned int *n, double *buffer, Tbox *b) Converts a buffer of doubles into a box. Definition: box.c:122 double DistancePointToBoxTopology(double *p, unsigned int *tp, Tbox *b) Distance from a point to a box. Definition: box.c:947 double SquaredDistancePointToBox(double t2, double *p, Tbox *b) Distance from a point to a box. Definition: box.c:738 Definition of the Tinterval type and the associated functions. |
Follow us!