spotInFormationArea :: PlayerInfo -> Lineup -> Formation -> Vector3 -> Bool
spotInFormationArea p l f v = if isNothing ar then False else pointInArea2D (fromJust ar) v
    where ar = getPlayerArea (staticplayer p) l f

-- | Returns a value between 1 (near) and 0 (away) indicating if the player
-- should run to the ball or not.
spotInFormationArea :: PlayerInfo -> Lineup -> Formation -> Vector3 -> Bool
spotInFormationArea p l f v = if isNothing ar then False else pointInArea2D (fromJust ar) v
    where ar = getPlayerArea (staticplayer p) l f

-- | Returns a value between 1 (near) and 0 (away) indicating if the player
-- should run to the ball or not.
spotInFormationArea p l f v = if isNothing ar then False else pointInArea2D (fromJust ar) v
    where ar = getPlayerArea (staticplayer p) l f

-- | Returns a value between 1 (near) and 0 (away) indicating if the player
-- should run to the ball or not.