dplug.gui.boxlist

Internal. Operations on list of 2D boxes.

Members

Functions

boundingBox
box2i boundingBox(box2i[] boxes)
boxSubtraction
void boxSubtraction(box2i A, box2i C, box2i D, box2i E, box2i F, 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(box2i[] areas)

For debug purpose. Returns: true if none of the boxes overlap.

Meta

Authors

Guillaume Piolat