shapes-0.1.0.0: physics engine and other tools for 2D shapes

Safe HaskellNone
LanguageHaskell2010

Physics.Contact.CircleVsHull

Synopsis

Documentation

generateContacts Source #

Arguments

:: Circle 
-> ConvexHull 
-> Maybe (Int, Contact')

(hull feature index, contact manifold) -- circle is always the penetrator

There's only one contact point between a circle and a convex hull.

closestAlong Source #

Arguments

:: P2

target point

-> Simplex2

line segment

-> P2