Box

Constructors

this
this(BoundType min, BoundType max)
this
this(T min, T max)
this
this(T min_x, T min_y, T max_x, T max_y)
this
this(T min_x, T min_y, T min_z, T max_x, T max_y, T max_z)
Undocumented in source.

Members

Aliases

BoundType
alias BoundType = Vector!(T, N)
type
alias type = T

Functions

center
BoundType center()

Returns center of the box.

contains
bool contains(BoundType point)

Returns true if it contains point.

contains
bool contains(Box other)
depth
T depth()

Returns depth of the box.

distance
real distance(BoundType point)
distance
real distance(Box o)
empty
bool empty()

Returns true if empty.

expand
Box expand(BoundType point)
expand
Box expand(Box other)
grow
Box grow(BoundType space)
grow
Box grow(T space)
height
T height()

Returns height of the box.

intersection
Box intersection(Box o)
intersects
bool intersects(Box other)
isSorted
bool isSorted()
opAssign
Box opAssign(U x)
opCast
U opCast()

Cast to other box types.

opEquals
bool opEquals(U other)
shrink
Box shrink(BoundType space)
shrink
Box shrink(T space)
size
BoundType size()

Returns dimensions of the box.

squaredDistance
real squaredDistance(BoundType point)
squaredDistance
real squaredDistance(Box o)
translate
Box translate(BoundType offset)
volume
T volume()

Returns signed volume of the box.

width
T width()

Returns width of the box.

Manifest constants

dim
enum dim;

Static functions

rectangle
Box rectangle(T x, T y, T width, T height)

Variables

max
BoundType max;
min
BoundType min;

Meta