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.

Trait Implementations

Derived Implementations

impl<S: Decodable + BaseFloat> Decodable for Frustum<S>

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Frustum<S>, __D::Error>

impl<S: Encodable + BaseFloat> Encodable for Frustum<S>

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl<S: PartialEq + BaseFloat> PartialEq for Frustum<S>

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

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

impl<S: Debug + BaseFloat> Debug for Frustum<S>

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

impl<S: Clone + BaseFloat> Clone for Frustum<S>

fn clone(&self) -> Frustum<S>

fn clone_from(&mut self, source: &Self)

impl<S: Copy + BaseFloat> Copy for Frustum<S>