// elide direction check hopefully since intervals should be constant
elide direction check hopefully since intervals should be constant
elide direction check hopefully since intervals should be constant
pub(crate) fn classify(interval: (f64, f64), x: f64) -> Self {
        if interval.0 < interval.1 {
            // interval is (min, max)
            match x {
                x if x <= interval.0 => IntervalSide::Left,
                x if interval.1 <= x => IntervalSide::Right,
                _ => IntervalSide::Inside,
            }
        } else {
            // interval is (max, min)
            match x {
                x if interval.0 <= x => IntervalSide::Left,
                x if x <= interval.1 => IntervalSide::Right,
                _ => IntervalSide::Inside,
            }
        }
    }
pub ( crate ) fn classify ( interval : ( f64 , f64 ) , x : f64 ) -> Self { if interval . 0 < interval . 1 { // interval is (min, max) match x { x if x <= interval . 0 => IntervalSide :: Left , x if interval . 1 <= x => IntervalSide :: Right , _ => IntervalSide :: Inside , } } else { // interval is (max, min) match x { x if interval . 0 <= x => IntervalSide :: Left , x if x <= interval . 1 => IntervalSide :: Right , _ => IntervalSide :: Inside , } } }
elide direction check hopefully since intervals should be constant
elide direction check hopefully since intervals should be constant
interval
(f64, f64)
x
f64