Implement tracking rockets
This commit is contained in:
@@ -156,6 +156,7 @@ isLeftOf :: Point2 -> Point2 -> Bool
|
||||
isLeftOf x y = isLeftOfA (argV x) (argV y)
|
||||
-- | Find the difference between two angles.
|
||||
-- Possibly not correct...
|
||||
-- TODO write tests
|
||||
diffAngles :: Float -> Float -> Float
|
||||
diffAngles x y
|
||||
| diff > pi = diffAngles (x - 2*pi) y
|
||||
|
||||
Reference in New Issue
Block a user