graphene.frustum

Module for [Frustum] class

class Frustum

Types 1

A 3D volume delimited by 2D clip planes.

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

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
Frustum self() nothrowReturns `this`, for use in `with` statements.
graphene.frustum.Frustum alloc() static nothrowAllocates a new #graphene_frustum_t structure.
bool containsPoint(graphene.point3_d.Point3D point) nothrowChecks whether a point is inside the volume defined by the given #graphene_frustum_t.
bool equal(graphene.frustum.Frustum b) nothrowChecks whether the two given #graphene_frustum_t are equal.
void getPlanes(ref graphene.plane.Plane[] planes) nothrowRetrieves the planes that define the given #graphene_frustum_t.
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) nothrowInitializes the given #graphene_frustum_t using the provided clipping planes.
graphene.frustum.Frustum initFromFrustum(graphene.frustum.Frustum src) nothrowInitializes the given #graphene_frustum_t using the clipping planes of another #graphene_frustum_t.
graphene.frustum.Frustum initFromMatrix(graphene.matrix.Matrix matrix) nothrowInitializes a #graphene_frustum_t using the given matrix.
bool intersectsBox(graphene.box.Box box) nothrowChecks whether the given box intersects a plane of a #graphene_frustum_t.
bool intersectsSphere(graphene.sphere.Sphere sphere) nothrowChecks whether the given sphere intersects a plane of a #graphene_frustum_t.
Constructors
this()Create a `frustum.Frustum` boxed type.
this(void * ptr, Flag!"Take" take)