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.

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