Frustum#
Added in version 1.2.
- class Frustum(*args, **kwargs)#
A 3D volume delimited by 2D clip planes.
The contents of the graphene_frustum_t are private, and should not be
modified directly.
Constructors#
Methods#
- class Frustum
- contains_point(point: Point3D) bool#
Checks whether a point is inside the volume defined by the given
Frustum.Added in version 1.2.
- Parameters:
point – a
Point3D
- equal(b: Frustum) bool#
Checks whether the two given
Frustumare equal.Added in version 1.6.
- Parameters:
b – a
Frustum
- init(p0: Plane, p1: Plane, p2: Plane, p3: Plane, p4: Plane, p5: Plane) Frustum#
Initializes the given
Frustumusing the provided clipping planes.Added in version 1.2.
- Parameters:
p0 – a clipping plane
p1 – a clipping plane
p2 – a clipping plane
p3 – a clipping plane
p4 – a clipping plane
p5 – a clipping plane
- init_from_frustum(src: Frustum) Frustum#
Initializes the given
Frustumusing the clipping planes of anotherFrustum.Added in version 1.2.
- Parameters:
src – a
Frustum
- init_from_matrix(matrix: Matrix) Frustum#
Initializes a
Frustumusing the givenmatrix.Added in version 1.2.
- Parameters:
matrix – a
Matrix
Fields#
- class Frustum
- planes#