This module provides the BBox4
type for 4-dimensional bounding boxes (bounding hyper-volumes).
- data BBox4 = BBox4 {}
- rangeX :: BBox4 -> Range
- rangeY :: BBox4 -> Range
- rangeZ :: BBox4 -> Range
- rangeW :: BBox4 -> Range
- rangeXYZW :: Range -> Range -> Range -> Range -> BBox4
- bounds :: Vector4 -> Vector4 -> BBox4
- within_bounds :: Vector4 -> BBox4 -> Bool
- min_bound :: BBox4 -> Vector4
- max_bound :: BBox4 -> Vector4
- union :: BBox4 -> BBox4 -> BBox4
- isect :: BBox4 -> BBox4 -> Maybe BBox4
Documentation
rangeXYZW :: Range -> Range -> Range -> Range -> BBox4Source
Given ranges for each coordinate axis, construct a bounding box.
bounds :: Vector4 -> Vector4 -> BBox4Source
Given a pair of corner points, construct a bounding box. (The points must be from opposite corners, but it doesn't matter which corners nor which order they are given in.)
within_bounds :: Vector4 -> BBox4 -> BoolSource
Test whether a given 4D vector is inside this bounding box.