Gamgine-0.5.1: Some kind of game library or set of utilities.
Gamgine.Math.Box
data Box Source #
Constructors
Fields
Instances
Methods
readsPrec :: Int -> ReadS Box #
readList :: ReadS [Box] #
readPrec :: ReadPrec Box #
readListPrec :: ReadPrec [Box] #
showsPrec :: Int -> Box -> ShowS #
show :: Box -> String #
showList :: [Box] -> ShowS #
minPtL :: Lens Box Vect Source #
maxPtL :: Lens Box Vect Source #
center :: Box -> Vect Source #
halfs :: Box -> Vect Source #
intersects :: Box -> Box -> Bool Source #
inside :: Box -> Box -> Bool Source #
moveBy :: Box -> Vect -> Box Source #
extendBy :: Box -> Box -> Box Source #
contains :: Box -> Vect -> Bool Source #
bound :: [Box] -> Box Source #
distance :: Box -> Box -> Vect Source #
minOverlap :: Box -> Box -> Vect Source #
type Tuple3d = (Double, Double, Double) Source #
fromTuples :: (Tuple3d, Tuple3d) -> Box Source #
toTuples :: Box -> (Tuple3d, Tuple3d) Source #