pub struct ScreenBounds {
pub min: [f32; 2],
pub max: [f32; 2],
pub nearest: f32,
}Expand description
A box projected onto a target: the pixel rectangle its corners span, with
(0, 0) at the top left, and the nearest reversed-Z depth any corner has.
Fields§
§min: [f32; 2]The rectangle’s top-left corner, in pixels.
max: [f32; 2]Its bottom-right corner.
nearest: f32The largest depth of the eight corners — under reversed-Z, the nearest.
Trait Implementations§
Source§impl Clone for ScreenBounds
impl Clone for ScreenBounds
impl Copy for ScreenBounds
Source§impl Debug for ScreenBounds
impl Debug for ScreenBounds
Source§impl PartialEq for ScreenBounds
impl PartialEq for ScreenBounds
impl StructuralPartialEq for ScreenBounds
Auto Trait Implementations§
impl Forget for ScreenBounds
impl Freeze for ScreenBounds
impl Move for ScreenBounds
impl RefUnwindSafe for ScreenBounds
impl Send for ScreenBounds
impl Sync for ScreenBounds
impl Unpin for ScreenBounds
impl UnsafeUnpin for ScreenBounds
impl UnwindSafe for ScreenBounds
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more