Struct cgmath::Frustum
[−]
[src]
pub struct Frustum<S: BaseFloat> { pub left: Plane<S>, pub right: Plane<S>, pub bottom: Plane<S>, pub top: Plane<S>, pub near: Plane<S>, pub far: Plane<S>, }
Fields
left | |
right | |
bottom | |
top | |
near | |
far |
Methods
impl<S: BaseFloat + 'static> Frustum<S>
fn new(left: Plane<S>, right: Plane<S>, bottom: Plane<S>, top: Plane<S>, near: Plane<S>, far: Plane<S>) -> Frustum<S>
Construct a frustum.
fn from_matrix4(mat: Matrix4<S>) -> Option<Frustum<S>>
Extract frustum planes from a projection matrix.
fn contains<B: Bound<S>>(&self, bound: &B) -> Relation
Find the spatial relation of a bound inside this frustum.