Frustum
Object Hierarchy:
Description:
[ CCode ( cname = "graphene_frustum_t" , copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "graphene_frustum_get_type ()" ) ]
[ Version ( since = "1.2" ) ]
public struct Frustum
A 3D volume delimited by 2D clip planes.
The contents of the `graphene_frustum_t` are private, and should not be modified directly.
Content:
Methods:
- public bool contains_point (Point3D point)
Checks whether a point is inside the volume defined by the given
Frustum.
- public bool equal (Frustum b)
Checks whether the two given Frustum are
equal.
- public void get_planes (ref Plane[] planes)
Retrieves the planes that define the given
Frustum.
- public unowned Frustum? init (Plane p0, Plane p1, Plane p2, Plane p3, Plane p4, Plane p5)
Initializes the given Frustum using the
provided clipping planes.
- public unowned Frustum? init_from_frustum (Frustum src)
Initializes the given Frustum using the
clipping planes of another Frustum.
- public unowned Frustum? init_from_matrix (Matrix matrix)
Initializes a Frustum using the given
matrix
.
- public bool intersects_box (Box box)
Checks whether the given box
intersects a plane of a
Frustum.
- public bool intersects_sphere (Sphere sphere)
Checks whether the given sphere
intersects a plane of a
Frustum.