graphene.frustum
Module for Frustum class
class Frustum
Types 1
classFrustum : gobject.boxed.Boxed
A 3D volume delimited by 2D clip planes.
The contents of the graphene.frustum.Frustum are private, and should not be modified directly.
Methods
graphene.frustum.Frustum alloc()Allocates a new #graphene_frustum_t structure.bool containsPoint(graphene.point3_d.Point3D point)Checks whether a point is inside the volume defined by the given #graphene_frustum_t.bool equal(graphene.frustum.Frustum b)Checks whether the two given #graphene_frustum_t are equal.void getPlanes(ref graphene.plane.Plane[] planes)Retrieves 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)Initializes the given #graphene_frustum_t using the provided clipping planes.graphene.frustum.Frustum initFromFrustum(graphene.frustum.Frustum src)Initializes the given #graphene_frustum_t using the clipping planes of another #graphene_frustum_t.graphene.frustum.Frustum initFromMatrix(graphene.matrix.Matrix matrix)Initializes a #graphene_frustum_t using the given matrix.bool intersectsBox(graphene.box.Box box)Checks whether the given box intersects a plane of a #graphene_frustum_t.bool intersectsSphere(graphene.sphere.Sphere sphere)Checks whether the given sphere intersects a plane of a #graphene_frustum_t.