( a: Interval | IntervalResult, b: Interval | IntervalResult )
| 16 | } from './rounding.js'; |
| 17 | |
| 18 | /** |
| 19 | * Add two intervals (or IntervalResults). |
| 20 | * |
| 21 | * [a, b] + [c, d] = [a + c, b + d] |
| 22 | * |
| 23 | * Addition is always defined and produces a valid interval. |
| 24 | * If inputs are IntervalResults, propagates errors (empty, entire, singular). |
| 25 | */ |
| 26 | function addRaw( |
| 27 | a: Interval | IntervalResult, |
| 28 | b: Interval | IntervalResult |
| 29 | ): IntervalResult { |
nothing calls this directly
no test coverage detected