Gg.BoxImplemented by all axis-aligned box types.
dim is the dimension of the boxes of type t.
The type for dim vectors.
The type for dim points.
The type for dim sizes.
The type for matrices representing linear transformations of dim space.
val empty : tempty is the empty box.
val zero : tzero is a box whose origin and size is zero.
val unit : tunit is the unit box which extends from zero to one in all dimensions.
max b is the greatest point of b (its size added to the origin).
Raises Invalid_argument on empty
val area : t -> floatarea b is the surface area of 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 : t -> boolis_pt b is true iff b is not empty and its size is equal to 0 in every dimension.
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 -> t -> unitpp ppf b prints a textual representation of b on ppf.