pub struct AtlasRegion {
pub u_min: f32,
pub v_min: f32,
pub u_max: f32,
pub v_max: f32,
}Expand description
A region within the texture atlas.
Fields§
§u_min: f32U coordinate of the left edge (0-1).
v_min: f32V coordinate of the top edge (0-1).
u_max: f32U coordinate of the right edge (0-1).
v_max: f32V coordinate of the bottom edge (0-1).
Implementations§
Trait Implementations§
Source§impl Clone for AtlasRegion
impl Clone for AtlasRegion
Source§fn clone(&self) -> AtlasRegion
fn clone(&self) -> AtlasRegion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AtlasRegion
impl Debug for AtlasRegion
impl Copy for AtlasRegion
Auto Trait Implementations§
impl Freeze for AtlasRegion
impl RefUnwindSafe for AtlasRegion
impl Send for AtlasRegion
impl Sync for AtlasRegion
impl Unpin for AtlasRegion
impl UnwindSafe for AtlasRegion
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