Frustum

3D frustum.

Constructors

this
this(Plane!T left, Plane!T right, Plane!T top, Plane!T bottom, Plane!T near, Plane!T far)

Create a frustum from 6 planes.

Members

Enums

OUTSIDE
anonymousenum OUTSIDE
Undocumented in source.

Functions

contains
bool contains(vec3!T point)

Point vs frustum intersection.

contains
int contains(Sphere!(T, 3) sphere)

Sphere vs frustum intersection.

contains
int contains(box3!T box)

AABB vs frustum intersection.

Variables

BOTTOM
enum int BOTTOM;
FAR
enum int FAR;
Undocumented in source.
LEFT
enum int LEFT;
NEAR
enum int NEAR;
RIGHT
enum int RIGHT;
TOP
enum int TOP;
Undocumented in source.
planes
Plane!T[6] planes;
Undocumented in source.

Bugs

verify proper signedness of half-spaces

See Also

Flipcode article by Dion Picco .

Meta