pub fn ease(
        self,
        time: i32,
        start_time: i32,
        end_time: i32,
        from: f64,
        to: f64,
    ) -> Option<f64> {
        if time < start_time || time > end_time || to < from {
            return None;
        }

        Some(
            self.calculate((time - start_time) as f64 / (end_time - start_time) as f64)
                * (to - from)
                + from,
        )
    }
/// Returns the value of an `Easing` at a certain time
///
/// Example:
/// ```
/// use osb::Easing;
///
/// // Let's say we have a MoveX event happening between the timestamps 0ms and 2000ms. This
/// // event uses a Out easing and the sprite moves from the X position 100 to 200. What is
/// // the X position of the sprite at the timestamp 1000ms?
/// let value = Easing::Out.ease(1000, 0, 2000, 100., 200.);
/// assert_eq!(value, Some(175.));
/// ```


Let's say we have a MoveX event happening between the timestamps 0ms and 2000ms. This
event uses a Out easing and the sprite moves from the X position 100 to 200. What is
the X position of the sprite at the timestamp 1000ms.
Let ' s say we have a MoveX event happening between the timestamps 0ms and 2000ms . This event uses a Out easing and the sprite moves from the X position 100 to 200 . What is the X position of the sprite at the timestamp 1000ms .
pub fn ease(
        self,
        time: i32,
        start_time: i32,
        end_time: i32,
        from: f64,
        to: f64,
    ) -> Option<f64> {
        if time < start_time || time > end_time || to < from {
            return None;
        }
        Some(
            self.calculate((time - start_time) as f64 / (end_time - start_time) as f64)
                * (to - from)
                + from,
        )
    }
pub fn ease ( self , time : i32 , start_time : i32 , end_time : i32 , from : f64 , to : f64 , ) -> Option < f64 > { if time < start_time || time > end_time || to < from { return None ; } Some ( self . calculate ( ( time - start_time ) as f64 / ( end_time - start_time ) as f64 ) * ( to - from ) + from , ) }
Returns the value of an `Easing` at a certain time
Example:
```
use osb::Easing;
Returns the value of an ` Easing ` at a certain time Example : ` ` ` use osb :: Easing ;
self
time
i32
start_time
i32
end_time
i32
from
f64
to
f64