1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::Range1D;

impl From<emath::Rangef> for Range1D {
    #[inline]
    fn from(rangef: emath::Rangef) -> Self {
        Self([rangef.min as f64, rangef.max as f64])
    }
}

impl From<Range1D> for emath::Rangef {
    #[inline]
    fn from(range1d: Range1D) -> Self {
        emath::Rangef {
            min: range1d.0[0] as f32,
            max: range1d.0[1] as f32,
        }
    }
}