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: f32The Z-depth of the near clip plane, usually close or equal to zero.
far: f32The 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 duplicate 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 Freeze for ClipPlanes
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
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)