Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Data.BoundingBox.Range
Description
This module provides the Range
type and several functions for working with ranges.
Documentation
bound_corners :: Scalar -> Scalar -> Range #
bound_points :: [Scalar] -> Range #
Find the bounds of a list of points. (Throws an exception if the list is empty.)
within_bounds :: Scalar -> Range -> Bool #
union :: Range -> Range -> Range #
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).