HGE2D-0.1.6.2: 2D game engine written in Haskell

Copyright(c) 2016 Martin Buck
Licensesee LICENSE
Safe HaskellNone
LanguageHaskell2010

HGE2D.Collision

Description

Containing functions for collision detection

Synopsis

Documentation

doCollide :: (HasBoundingBox a, HasBoundingBox b) => a -> b -> Bool Source #

Tests whether two objects collide (overlap in any way)

doContain :: (HasBoundingBox a, HasBoundingBox b) => a -> b -> Bool Source #

Tests whether either of the two objects fully contain the other

isInside :: (HasBoundingBox a, HasBoundingBox b) => a -> b -> Bool Source #

Tests whether the first is fully in the second

isInsideRP :: (Positioned a, HasBoundingBox b) => a -> b -> Bool Source #

Tests whether a position is within the bounding box