Struct citro3d::math::ClipPlanes
source · pub struct ClipPlanes {
pub near: f32,
pub far: f32,
}
Expand description
Configuration for the clipping planes of a projection.
For Perspective
projections, this is used for the near and far clip planes
of the view frustum.
For Orthographic
projections, this is used for the Z clipping planes of
the projection.
Note that the near
value should always be less than far
, regardless of
CoordinateOrientation
. In other words, these values will be negated
when used with a RightHanded
orientation.
Fields§
§near: f32
The Z-depth of the near clip plane, usually close or equal to zero.
far: f32
The Z-depth of the far clip plane, usually greater than zero.
Trait Implementations§
source§impl Clone for ClipPlanes
impl Clone for ClipPlanes
source§fn clone(&self) -> ClipPlanes
fn clone(&self) -> ClipPlanes
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ClipPlanes
impl Debug for ClipPlanes
impl Copy for ClipPlanes
Auto Trait Implementations§
impl RefUnwindSafe for ClipPlanes
impl Send for ClipPlanes
impl Sync for ClipPlanes
impl Unpin for ClipPlanes
impl UnwindSafe for ClipPlanes
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more