Check whether tests compile in ghcid
This commit is contained in:
@@ -59,9 +59,11 @@ angleVV :: Point2 -> Point2 -> Float
|
||||
{-# INLINE angleVV #-}
|
||||
angleVV a b
|
||||
| a == b = 0
|
||||
| norm a == 0 = 0
|
||||
| norm b == 0 = 0
|
||||
| otherwise =
|
||||
let ma = magV a
|
||||
mb = magV b
|
||||
let ma = norm a
|
||||
mb = norm b
|
||||
d = a `dotV` b
|
||||
in acos $ d / (ma * mb)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user