drishti 0.2.0

Rust frontend orchestration framework: design publication plus deterministic reference cores for the Logical Works ink lab, the GPU residency model and the Logic OS Canvas protocol, motion, scene and native host broker; no qualified GPU backend yet.
Documentation
//! Scalar interpolation.
//!
//! Uses the two-lerp formula so endpoints are exact at mix 0 and 1 regardless
//! of the magnitude of `from` and `to`. The single-lerp
//! `from + (to - from) * mix` can drift at extreme values due to
//! floating-point cancellation. `mix` is NOT clamped; callers pass a
//! pre-evaluated easing output.

/// Linear interpolation between two scalars, exact at both endpoints.
///
/// # Examples
///
/// ```
/// use drishti::motion::lerp_scalar;
///
/// assert_eq!(lerp_scalar(0.0, 10.0, 0.25), 2.5);
/// assert_eq!(lerp_scalar(3.0, 9.0, 0.0), 3.0);
/// assert_eq!(lerp_scalar(3.0, 9.0, 1.0), 9.0);
/// ```
#[must_use]
pub const fn lerp_scalar(from: f32, to: f32, mix: f32) -> f32 {
    (1.0 - mix) * from + mix * to
}