Struct re_renderer::RectInt
source · pub struct RectInt {
pub min: IVec2,
pub extent: UVec2,
}Expand description
A 2D rectangle with integer coordinates.
Typically used for texture cutouts etc.
Fields§
§min: IVec2The corner with the smallest coordinates.
In most coordinate spaces this is the to top left corner of the rectangle.
extent: UVec2The size of the rectangle.
Implementations§
Trait Implementations§
impl Copy for RectInt
Auto Trait Implementations§
impl RefUnwindSafe for RectInt
impl Send for RectInt
impl Sync for RectInt
impl Unpin for RectInt
impl UnwindSafe for RectInt
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