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>, }
Fields
left: Plane<S>
right: Plane<S>
bottom: Plane<S>
top: Plane<S>
near: Plane<S>
far: Plane<S>
Methods
impl<S: BaseFloat + 'static> 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>
Construct a frustum.
fn from_matrix4(mat: Matrix4<S>) -> Option<Frustum<S>>
Extract frustum planes from a projection matrix.
fn contains<B: Bound<S> + Copy>(&self, bound: B) -> Relation
Find the spatial relation of a bound inside this frustum.
Trait Implementations
impl<S: Encodable + BaseFloat> Encodable for Frustum<S>
[src]
impl<S: Decodable + BaseFloat> Decodable for Frustum<S>
[src]
impl<S: Copy + BaseFloat> Copy for Frustum<S>
[src]
impl<S: Clone + BaseFloat> Clone for Frustum<S>
[src]
fn clone(&self) -> Frustum<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more