pub struct UvRect { /* private fields */ }Expand description
Normalized texture coordinates for one sub-rectangle of an atlas image.
Values are fractions of the atlas dimensions in the range 0.0 to 1.0,
with (0.0, 0.0) at the image’s top-left corner. The V axis runs
downward to match the top-left origin used by Rect.
Implementations§
Source§impl UvRect
impl UvRect
pub fn get_u0(&self) -> f64
pub fn get_mut_u0(&mut self) -> &mut f64
pub fn set_u0(&mut self, val: f64) -> &mut Self
pub fn get_v0(&self) -> f64
pub fn get_mut_v0(&mut self) -> &mut f64
pub fn set_v0(&mut self, val: f64) -> &mut Self
pub fn get_u1(&self) -> f64
pub fn get_mut_u1(&mut self) -> &mut f64
pub fn set_u1(&mut self, val: f64) -> &mut Self
pub fn get_v1(&self) -> f64
pub fn get_mut_v1(&mut self) -> &mut f64
pub fn set_v1(&mut self, val: f64) -> &mut Self
Trait Implementations§
impl Copy for UvRect
impl StructuralPartialEq for UvRect
Auto Trait Implementations§
impl Freeze for UvRect
impl RefUnwindSafe for UvRect
impl Send for UvRect
impl Sync for UvRect
impl Unpin for UvRect
impl UnsafeUnpin for UvRect
impl UnwindSafe for UvRect
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