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: PartialEq + BaseFloat> PartialEq for Frustum<S>
[src]

fn eq(&self, __arg_0: &Frustum<S>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Frustum<S>) -> bool

This method tests for !=.

impl<S: Debug + BaseFloat> Debug for Frustum<S>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

impl<S: Copy + BaseFloat> Copy for Frustum<S>
[src]