[][src]Struct soy::Bezier

pub struct Bezier { /* fields omitted */ }

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

impl Debug for Bezier[src]

impl Lerper for Bezier[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.