Struct collision::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>, }
View frustum, used for frustum culling
Fields
left: Plane<S>
Left plane
right: Plane<S>
Right plane
bottom: Plane<S>
Bottom plane
top: Plane<S>
Top plane
near: Plane<S>
Near plane
far: Plane<S>
Far plane
Methods
impl<S: BaseFloat> Frustum<S>
[src]
fn new(
left: Plane<S>,
right: Plane<S>,
bottom: Plane<S>,
top: Plane<S>,
near: Plane<S>,
far: Plane<S>
) -> Frustum<S>
[src]
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>>
[src]
Extract frustum planes from a projection matrix.
fn contains<B: PlaneBound<S>>(&self, bound: &B) -> Relation
[src]
Find the spatial relation of a bound inside this frustum.
Trait Implementations
impl<S: Copy + BaseFloat> Copy for Frustum<S>
[src]
impl<S: Clone + BaseFloat> Clone for Frustum<S>
[src]
fn clone(&self) -> Frustum<S>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more