Refactor creature ai
This commit is contained in:
@@ -134,7 +134,7 @@ but is symmetric around 0:
|
||||
|
||||
-}
|
||||
roundPoint2 :: Point2 -> Point2
|
||||
roundPoint2 (x,y) = (fromIntegral $ (round x :: Int),fromIntegral $ (round y :: Int))
|
||||
roundPoint2 (x,y) = (fromIntegral (round x :: Int),fromIntegral (round y :: Int))
|
||||
-- | Given two points, finds the linear gradient if it is non-infinite.
|
||||
linGrad :: (Eq a,Fractional a) => (a,a) -> (a,a) -> Maybe a
|
||||
linGrad (x,y) (a,b)
|
||||
|
||||
Reference in New Issue
Block a user