dplug.math.box

N-dimensional half-open interval [a, b[.

Members

Aliases

DimensionType
alias DimensionType(T : Box!U, U...) = U[0]

Get the numeric type used to measure a box's dimensions.

box2d
alias box2d = box2!double
Undocumented in source.
box2f
alias box2f = box2!float
Undocumented in source.
box2i
alias box2i = box2!int
Undocumented in source.
box3d
alias box3d = box3!double
Undocumented in source.
box3f
alias box3f = box3!float
Undocumented in source.
box3i
alias box3i = box3!int
Undocumented in source.

Enums

isBox
eponymoustemplate isBox(T)

True if T is a kind of Box

Functions

rectangle
box2i rectangle(int x, int y, int width, int height)
rectangled
box2d rectangled(double x, double y, double width, double height)
rectanglef
box2f rectanglef(float x, float y, float width, float height)

Structs

Box
struct Box(T, int N)

N-dimensional half-open interval [a, b[.

Templates

box2
template box2(T)

Instanciate to use a 2D box.

box3
template box3(T)

Instanciate to use a 3D box.

Meta