Safe Haskell | Safe-Infered |
---|

This module provides the `Range`

type and several functions for working with ranges.

# Documentation

bound_corners :: Scalar -> Scalar -> RangeSource

bound_points :: [Scalar] -> RangeSource

Find the bounds of a list of points. (Throws an exception if the list is empty.)

within_bounds :: Scalar -> Range -> BoolSource

union :: Range -> Range -> RangeSource

Take the union of two ranges. The resulting `Range`

contains all points that the original ranges contained, plus any points between them (if the original ranges don't overlap).