dplug.gui.boxlist

Internal. Operations on list of 2D boxes.

Members

Functions

boundingBox
box2i boundingBox(box2i[] boxes)
boxSubtraction
void boxSubtraction(in box2i A, in box2i C, out box2i D, out box2i E, out box2i F, out box2i G)

Make 4 boxes that are A without C (C is contained in A) Some may be empty though since C touch at least one edge of A General case +---------+ +---------+ | A | | D | | +---+ | After split +--+---+--+ | | C | | => | E| |F | At least one of D, E, F or G is empty | +---+ | +--+---+--+ | | | G | +---------+ +---------+

haveNoOverlap
bool haveNoOverlap(in box2i[] areas)

For debug purpose.

Meta

Authors

Guillaume Piolat