Frustum

A 3D volume delimited by 2D clip planes.

The contents of the graphene.frustum.Frustum are private, and should not be modified directly.

Members

Functions

containsPoint
bool containsPoint(graphene.point3_d.Point3D point)

Checks whether a point is inside the volume defined by the given #graphene_frustum_t.

equal
bool equal(graphene.frustum.Frustum b)

Checks whether the two given #graphene_frustum_t are equal.

getPlanes
void getPlanes(graphene.plane.Plane[] planes)

Retrieves the planes that define the given #graphene_frustum_t.

initFromFrustum
graphene.frustum.Frustum initFromFrustum(graphene.frustum.Frustum src)

Initializes the given #graphene_frustum_t using the clipping planes of another #graphene_frustum_t.

initFromMatrix
graphene.frustum.Frustum initFromMatrix(graphene.matrix.Matrix matrix)

Initializes a #graphene_frustum_t using the given matrix.

init_
graphene.frustum.Frustum init_(graphene.plane.Plane p0, graphene.plane.Plane p1, graphene.plane.Plane p2, graphene.plane.Plane p3, graphene.plane.Plane p4, graphene.plane.Plane p5)

Initializes the given #graphene_frustum_t using the provided clipping planes.

intersectsBox
bool intersectsBox(graphene.box.Box box)

Checks whether the given box intersects a plane of a #graphene_frustum_t.

intersectsSphere
bool intersectsSphere(graphene.sphere.Sphere sphere)

Checks whether the given sphere intersects a plane of a #graphene_frustum_t.

Static functions

alloc
graphene.frustum.Frustum alloc()

Allocates a new #graphene_frustum_t structure.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.