| Copyright | (C) Frank Staals |
|---|---|
| License | see the LICENSE file |
| Maintainer | Frank Staals |
| Safe Haskell | None |
| Language | GHC2024 |
HGeometry.Box.Boxable
Description
Typeclass that expresses that we can compute an axis parallel bounding box of an object.
Documentation
class IsBoxable g where Source #
Types for which we can compute an axis parallel boundingbox
Minimal complete definition
Nothing
Methods
boundingBox :: forall (d :: Nat) r. (d ~ Dimension g, r ~ NumType g, Ord r) => g -> Box (Point d r) Source #
Compute the axis-parallel boundingbox of the given geometry.
Instances
| (IsBoxable g, Has_ Additive_ d r, d ~ Dimension g, r ~ NumType g) => IsBoxable (NonEmpty g) Source # | |
| (Box_ (Box point) point, Point_ point d r) => IsBoxable (Box point) Source # | |
| (Point_ point d r, Ord (Vector d r)) => IsBoxable (Triangle point) Source # | |
| IsBoxable g => IsBoxable (g :+ extra) Source # | |
| (Traversable1 endPoint, Point_ point d r, d ~ Dimension point, r ~ NumType point, Ord r, Ord (Vector d r)) => IsBoxable (LineSegment endPoint point) Source # | |
Defined in HGeometry.LineSegment.Internal Methods boundingBox :: forall (d0 :: Nat) r0. (d0 ~ Dimension (LineSegment endPoint point), r0 ~ NumType (LineSegment endPoint point), Ord r0) => LineSegment endPoint point -> Box (Point d0 r0) Source # | |
| IsBoxable (Point d r) Source # | |