pub struct NormalizedUvRect {
pub u_min: f32,
pub v_min: f32,
pub u_max: f32,
pub v_max: f32,
}Expand description
UV rectangle in normalized [0, 1] texture coordinates.
All four fields are in the range [0.0, 1.0] where (0, 0) is the
top-left corner and (1, 1) is the bottom-right corner of the texture.
Fields§
§u_min: f32Left edge (U coordinate, column-axis).
v_min: f32Top edge (V coordinate, row-axis).
u_max: f32Right edge (U coordinate).
v_max: f32Bottom edge (V coordinate).
Trait Implementations§
Source§impl Clone for NormalizedUvRect
impl Clone for NormalizedUvRect
Source§fn clone(&self) -> NormalizedUvRect
fn clone(&self) -> NormalizedUvRect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NormalizedUvRect
Source§impl Debug for NormalizedUvRect
impl Debug for NormalizedUvRect
Auto Trait Implementations§
impl Freeze for NormalizedUvRect
impl RefUnwindSafe for NormalizedUvRect
impl Send for NormalizedUvRect
impl Sync for NormalizedUvRect
impl Unpin for NormalizedUvRect
impl UnsafeUnpin for NormalizedUvRect
impl UnwindSafe for NormalizedUvRect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more