Struct crayon::math::frustum::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>, // some fields omitted }
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]
pub fn new(projection: Projection<S>) -> Frustum<S>
[src]
Construct a frustum.
pub fn projection(&self) -> Projection<S>
[src]
pub fn contains<B: PlaneBound<S>>(&self, bound: &B) -> PlaneRelation
[src]
Find the spatial relation of a bound inside this frustum.
pub fn to_matrix(&self) -> Matrix4<S>
[src]
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
impl<S: Debug + BaseFloat> Debug for Frustum<S>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<S: PartialEq + BaseFloat> PartialEq for Frustum<S>
[src]
fn eq(&self, __arg_0: &Frustum<S>) -> bool
[src]
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
[src]
This method tests for !=
.
impl<S: BaseFloat> Into<FrustumPoints<S>> for Frustum<S>
[src]
fn into(self) -> FrustumPoints<S>
[src]
Performs the conversion.