pub struct WarpMeshVertex {
pub pos_clip: [f32; 2],
pub uv_orig: [f32; 2],
pub rad: f32,
pub ang: f32,
}Expand description
Static portion of one warp mesh vertex.
Fields§
§pos_clip: [f32; 2]Clip-space position. (-1, -1) = bottom-left, (1, 1) = top-right.
uv_orig: [f32; 2]Original (unwarped) texture coordinate, in [0, 1]².
rad: f32MilkDrop rad input: 0 at center, ≈ 1 at corners.
ang: f32MilkDrop ang input: radians in [0, 2π). 0 = right, π/2 = up.
Trait Implementations§
Source§impl Clone for WarpMeshVertex
impl Clone for WarpMeshVertex
Source§fn clone(&self) -> WarpMeshVertex
fn clone(&self) -> WarpMeshVertex
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 WarpMeshVertex
impl Debug for WarpMeshVertex
Source§impl PartialEq for WarpMeshVertex
impl PartialEq for WarpMeshVertex
impl Copy for WarpMeshVertex
impl StructuralPartialEq for WarpMeshVertex
Auto Trait Implementations§
impl Freeze for WarpMeshVertex
impl RefUnwindSafe for WarpMeshVertex
impl Send for WarpMeshVertex
impl Sync for WarpMeshVertex
impl Unpin for WarpMeshVertex
impl UnwindSafe for WarpMeshVertex
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