Safe Haskell | None |
---|---|
Language | Haskell2010 |
Waterfall.BoundingBox.Oriented
Synopsis
- data OrientedBoundingBox
- obbCenter :: OrientedBoundingBox -> V3 Double
- obbSideX :: OrientedBoundingBox -> V3 Double
- obbSideY :: OrientedBoundingBox -> V3 Double
- obbSideZ :: OrientedBoundingBox -> V3 Double
- orientedBoundingBox :: Solid -> Maybe OrientedBoundingBox
- obbToSolid :: OrientedBoundingBox -> Solid
Documentation
data OrientedBoundingBox Source #
An OrientedBoundingBox may be a tighter fit for a Shape than an axis aligned bounding box would be
obbCenter :: OrientedBoundingBox -> V3 Double Source #
The center point of an OrientedBoundingBox
obbSideX :: OrientedBoundingBox -> V3 Double Source #
The X side of the oriented bounding box.
This is measured from the center to one Face. So the length of this vector is _half_ of the side length of the bounding box.
obbSideY :: OrientedBoundingBox -> V3 Double Source #
The Y side of the oriented bounding box.
This is measured from the center to one face. So the length of this vector is _half_ of the side length of the bounding box.
obbSideZ :: OrientedBoundingBox -> V3 Double Source #
the Z side of the oriented bounding box
This is measured from the center to one face. So the length of this vector is _half_ of the side length of the bounding box.
orientedBoundingBox :: Solid -> Maybe OrientedBoundingBox Source #
Compute an OrientedBoundingBox for a solid
obbToSolid :: OrientedBoundingBox -> Solid Source #
Reify an OrientedBoundingBox
as a Solid