pub enum Deform {
Taper,
Pinch,
Shear,
Twist,
Bend,
}Expand description
How a DeformBody deforms: each about the axis, over the zone.
Variants§
Taper
Scaled across the axis, by one at the zone’s start and by amount
at its end, linearly in between: exact.
Pinch
Scaled across the axis only towards toward, as a taper is: exact.
Shear
Moved towards toward, by nothing at the zone’s start and by
amount at its end, linearly along the whole axis: exact, an affine
map, which the zone only gives its rate.
Twist
Turned about the axis, by nothing at the zone’s start and by
amount degrees at its end, uniformly in between.
Bend
The zone wound onto an arc of amount degrees, curving towards
toward, its length kept along the axis.
Trait Implementations§
impl Copy for Deform
Source§impl<'de> Deserialize<'de> for Deform
impl<'de> Deserialize<'de> for Deform
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
impl Eq for Deform
impl StructuralPartialEq for Deform
Auto Trait Implementations§
impl Freeze for Deform
impl RefUnwindSafe for Deform
impl Send for Deform
impl Sync for Deform
impl Unpin for Deform
impl UnsafeUnpin for Deform
impl UnwindSafe for Deform
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.