gjk2d-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

GJK

Synopsis

Documentation

newtype Convex Source #

Convex is represented by its supprot function

Constructors

Convex 

Fields

minkowskiDifference :: Convex -> Convex -> Convex Source #

Minkowski Difference between 2 Convexes

unAngle :: V2 Double -> Double Source #

Compute angle of a vector

originInside :: Convex -> Bool Source #

Core Logic: Detect if origin point is contained inside a Convex

doSimplex :: (Double -> V2 Double) -> V2 Double -> V2 Double -> Bool Source #

Simplex addition till nearZero

convexIntersect :: Convex -> Convex -> Bool Source #

If two Convex colliside