Box

D-Dimensional Axis-Aligned (Hyper) Cartesian Box with Element (Component) Type E.

Note: We must use inclusive compares betweeen boxes and points in inclusion functions such as inside() and includes() in order for the behaviour of bounding boxes (especially in integer space) to work as desired.

Members

Functions

expand
Box expand(Box b)

Expands box by another box b.

expand
Box expand(Vector!(E, D) v)

Expands the Box, so that v is part of the Box.

sides
auto sides()
sidesProduct
real sidesProduct()

Static functions

fromPoints
Box fromPoints(Vector!(E, D)[] points)

Get Box Center. Constructs a Box enclosing points.

Meta