Fix direction stuttering bug
This commit is contained in:
@@ -43,6 +43,8 @@ normalizeV :: Point2 -> Point2
|
||||
normalizeV p = (1 / magV p) *.* p
|
||||
|
||||
{- | Angle between two vectors. Always positive. -}
|
||||
-- TODO fix this: it seems to be unstable when the two vectors are very close to
|
||||
-- each other
|
||||
angleVV :: Point2 -> Point2 -> Float
|
||||
{-# INLINE angleVV #-}
|
||||
angleVV a b
|
||||
|
||||
Reference in New Issue
Block a user