gfm.math.box

This module implements a generic axis-aligned bounding box (AABB).

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

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