gjk2d 0.1.0.0 → 0.1.0.1
raw patch · 2 files changed
+3/−3 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- gjk2d.cabal +1/−1
- src/GJK.hs +2/−2
gjk2d.cabal view
@@ -1,5 +1,5 @@ name: gjk2d-version: 0.1.0.0+version: 0.1.0.1 -- synopsis: description: Yet another 2D GJK collision dection algorithm with Linear homepage: https://github.com/suzumiyasmith/gjk2d#readme
src/GJK.hs view
@@ -11,8 +11,8 @@ -- | Compute angle of a vector unAngle :: V2 Double -> Double-unAngle (V2 ax ay) =- let alpha = asin $ ay / (ax * ax + ay * ay)+unAngle a@(V2 ax ay) =+ let alpha = asin $ ay / norm a in if ax < 0 then pi - alpha else alpha