//! Simple math functions.
/// Linearly interpolate between two values.
///
/// Internally this calls:
///
/// ```
/// # fn func(lhs: f32, rhs: f32, factor: f32) -> f32{
/// lhs + (rhs - lhs) * factor
/// # }
/// ```
///
/// # Arguments
///
/// * `lhs` - First value, will be returned if `factor == 0.0`.
/// * `rhs` - Second value, will be returned if `factor == 1.0`.
/// * `factor` - Interpolation value, when `factor == 0.0`, `lhs` will be returned, when `factor == 1.0`, `rhs` will be returned.
///
/// # Returns
///
/// - The linear interpolated value between `lhs` and `rhs`.