Struct crayon::math::frustum::FrustumPoints
[−]
[src]
pub struct FrustumPoints<S: BaseFloat> { pub near_top_left: Point3<S>, pub near_top_right: Point3<S>, pub near_bottom_left: Point3<S>, pub near_bottom_right: Point3<S>, pub far_top_left: Point3<S>, pub far_top_right: Point3<S>, pub far_bottom_left: Point3<S>, pub far_bottom_right: Point3<S>, }
View frustum corner points
Fields
near_top_left: Point3<S>
Near top left point
near_top_right: Point3<S>
Near top right point
near_bottom_left: Point3<S>
Near bottom left point
near_bottom_right: Point3<S>
Near bottom right point
far_top_left: Point3<S>
Far top left point
far_top_right: Point3<S>
Far top right point
far_bottom_left: Point3<S>
Far bottom left point
far_bottom_right: Point3<S>
Far bottom right point
Methods
impl<S: BaseFloat> FrustumPoints<S>
[src]
pub fn transform<T>(&self, transform: &T) -> Self where
T: Transform<Point3<S>>,
[src]
T: Transform<Point3<S>>,
Apply an arbitrary transform to the corners of this frustum, return a new conservative frustum.
pub fn to_corners(&self) -> [Point3<S>; 8]
[src]
Compute corners.
pub fn aabb(&self) -> Aabb3<S>
[src]
Compute aabb.
Trait Implementations
impl<S: Copy + BaseFloat> Copy for FrustumPoints<S>
[src]
impl<S: Clone + BaseFloat> Clone for FrustumPoints<S>
[src]
fn clone(&self) -> FrustumPoints<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: PartialEq + BaseFloat> PartialEq for FrustumPoints<S>
[src]
fn eq(&self, __arg_0: &FrustumPoints<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: &FrustumPoints<S>) -> bool
[src]
This method tests for !=
.
impl<S: Debug + BaseFloat> Debug for FrustumPoints<S>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<S: BaseFloat> Into<FrustumPoints<S>> for Frustum<S>
[src]
fn into(self) -> FrustumPoints<S>
[src]
Performs the conversion.
Auto Trait Implementations
impl<S> Send for FrustumPoints<S> where
S: Send,
S: Send,
impl<S> Sync for FrustumPoints<S> where
S: Sync,
S: Sync,