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.

Constructors

this
this(Vector!(E, D) lh)
Undocumented in source.
this
this(Vector!(E, D) l_, Vector!(E, D) h_)
Undocumented in source.

Members

Aliases

area
alias area = sidesProduct
Undocumented in source.
hyperVolume
alias hyperVolume = sidesProduct
Undocumented in source.
include
alias include = expand
Undocumented in source.
volume
alias volume = sidesProduct
Undocumented in source.

Functions

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

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

expand
Box expand(Box b)

Expands box by another box b.

Properties

sides
auto sides [@property getter]
sidesProduct
real sidesProduct [@property getter]
toString
Sink toString [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

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

Get Box Center. Constructs a Box enclosing points.

Variables

max
Vector!(E, D) max;

High.

min
Vector!(E, D) min;

Low.

Meta