Add interval type to geometry library
Description
It is often useful to represent ranges of values, especially when doing bounds checking on input or output. An interval class can provide consistency in interface and behavior for those kinds of operations. It can also serve as mechanism for enforcing correctness by preventing invalid intervals from being constructed.
This ticket is to add such a class to the repo.
Expected behavior
- Interval objects should be correct by construction
- Methods for testing containment or computing intersections should be provided and covered by unit tests
Definition of Done
-
Documentation provided -
Implementation with test coverage provided