[−][src]Struct soy::Bezier
Unit cubic bezier easing function.
Methods
impl Bezier
[src]
pub fn new(x1: f32, y1: f32, x2: f32, y2: f32) -> Bezier
[src]
Create a new cubic bezier, with provided y values.
Usage
let ease = soy::Bezier::new(0.17, 0.67, 0.83, 0.67); let ease_in_out = soy::Bezier::new(0.42, 0.0, 0.58, 1.0);
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Bezier
impl Send for Bezier
impl Sync for Bezier
impl Unpin for Bezier
impl UnwindSafe for Bezier
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,