Gg.Box11D axis-aligned boxes.
type t = box1The type for 1D boxes (closed intervals).
dim is the dimension of the boxes of type box2.
type size = size1The type for 1D sizes.
The type for matrices representing linear transformations of 1D space.
val empty : box1empty is the empty box.
val ox : box1 -> floatox b is o b.
val w : box1 -> floatw b is size b.
val zero : box1zero is a box whose origin and size is zero.
val unit : box1unit is the unit box which extends from zero to one in all dimensions.
val of_pts : float -> float -> box1of_pts p p' is the smallest box whose space contains p and p'.
val min : box1 -> floatmin b is the smallest point of b (its origin).
Raises Invalid_argument on empty
val minx : box1 -> floatminx b is min b.
val max : box1 -> floatmax b is the greatest point of b (its size added to the origin).
Raises Invalid_argument on empty
val maxx : box1 -> floatmaxx b is max b.
val midx : box1 -> floatmidx b is mid b.
val left : box1 -> floatleft b is minx b.
val right : box1 -> floatright b is maxx b.
val area : box1 -> floatarea b is the surface area of b.
inter b b' is a box whose space is the intersection of S(b) and S(b').
inset d b is b whose edges are inset in each dimension according to amounts in d. Negative values in d outset. If the size in dimension i becomes negative it is clamped to 0 and the ith coordinate of the mid point of b is used for the ith coordinate of the resulting box's origin. Returns empty on empty.
val is_pt : box1 -> boolis_pt b is true iff b is not empty and its size is equal to 0 in every dimension.
val mem : float -> box1 -> boolmem p b is true iff p is in S(b).
equal_f eq b b' tests b and b' like equal but uses eq to test floating point values.
compare_f cmp b b' compares b and b' like compare but uses cmp to compare floating point values.
val pp : Stdlib.Format.formatter -> box1 -> unitpp ppf b prints a textual representation of b on ppf.