title: Determine if square cell is inside polygon
body: <p><a href="https://i.stack.imgur.com/Vlidx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Vlidx.png" alt="enter image description here"></a></p>
  
  <p>For instance, I want the grid cells (squares) inside or partially inside polygon #14 to be associated with #14. Is there an algorithm that will compute if a square is inside a polygon efficiently? </p>
  
  <p>I have the coordinates of the edges that make up the polygon. </p>