Basics
Guides
API Reference
Basics
Guides
API Reference
[13:7] extends: object
A 3D volume delimited by 2D clip planes. The contents of the
graphene_frustum_t are private, and should not be modified directly.
GrapheneFrustum (Handle = null)
Allocates a new #graphene_frustum_t structure. The contents of the returned structure are undefined.
Handle is an optional native handle or wrapper whose handle to adopt; when the native constructor is called.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.contains_point (object point)
Checks whether a point is inside the volume defined by the given #graphene_frustum_t.
point is a #graphene_point3d_t.true if the point is inside the frustum.equal (object b)
Checks whether the two given #graphene_frustum_t are equal.
b is a #graphene_frustum_t.true if the given frustums are equal.free ()
Frees the resources allocated by graphene_frustum_alloc().
None.get_planes ()
Retrieves the planes that define the given #graphene_frustum_t.
planes is return location for an array of 6 #graphene_plane_t.None.init (object p0, object p1, object p2, object p3, object p4, object p5)
Initializes the given #graphene_frustum_t using the provided clipping planes.
p0 is a clipping plane.p1 is a clipping plane.p2 is a clipping plane.p3 is a clipping plane.p4 is a clipping plane.p5 is a clipping plane.the initialized frustum.init_from_frustum (object src)
Initializes the given #graphene_frustum_t using the clipping planes of another #graphene_frustum_t.
src is a #graphene_frustum_t.the initialized frustum.init_from_matrix (object matrix)
Initializes a #graphene_frustum_t using the given @matrix.
matrix is a #graphene_matrix_t.the initialized frustum.intersects_box (object box)
Checks whether the given @box intersects a plane of a #graphene_frustum_t.
box is a #graphene_box_t.true if the box intersects the frustum.intersects_sphere (object sphere)
Checks whether the given @sphere intersects a plane of a #graphene_frustum_t.
sphere is a #graphene_sphere_t.true if the sphere intersects the frustum.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.