Frustum

Constructors

this
this(mat4 mvp)

Constructs the frustum from a model-view-projection matrix.

this
this(Plane[6] planes)

Constructs the frustum from 6 planes.

Members

Enums

LEFT
anonymousenum LEFT
Undocumented in source.

Functions

intersects
int intersects(AABB aabb)

Checks if the aabb intersects with the frustum. Returns OUTSIDE (= 0), INSIDE (= 1) or INTERSECT (= 2).

opBinaryRight
bool opBinaryRight(AABB aabb)

Returns true if the aabb intersects with the frustum or is inside it.

Properties

bottom
inout(Plane) bottom [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
far
inout(Plane) far [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
left
inout(Plane) left [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
near
inout(Plane) near [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
right
inout(Plane) right [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
top
inout(Plane) top [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

planes
Plane[6] planes;

Holds all 6 planes of the frustum.

Meta