pub struct WarpField {
pub width: u32,
pub height: u32,
pub global_basis: RadialBasis,
pub center_x: u16,
pub center_y: u16,
pub vortices: Vec<Vortex>,
}Expand description
Warp field combining global radial basis and local vortices
Fields§
§width: u32Image dimensions
height: u32§global_basis: RadialBasisGlobal radial basis (4 coefficients)
center_x: u16Center point for global basis
center_y: u16§vortices: Vec<Vortex>Local vortex primitives
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WarpField
impl<'de> Deserialize<'de> for WarpField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WarpField
impl RefUnwindSafe for WarpField
impl Send for WarpField
impl Sync for WarpField
impl Unpin for WarpField
impl UnwindSafe for WarpField
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