original_docstring: Check whether a point is inside, outside, or on a polygon.
  
      *DON'T* repeat the first point at the end of the polygon list.
      Points are represented as (x, y, z) triples.
  
      Args:
          polygon: A list of points describing the polygon.
                   Can be in clockwise or counterclockwise order.
          point: The point to test.
  
      Returns:
           1 if the point is inside the polygon.
           0 if the point is on the polygon.
           -1 if the point is outside the polygon.
      
docstring: Check whether a point is inside, outside, or on a polygon.
  DON'T* repeat the first point at the end of the polygon list.
  Points are represented as (x, y, z) triples.
docstring_tokens: Check whether a point is inside outside or on a polygon . DON ' T * repeat the first point at the end of the polygon list . Points are represented as ( x y z ) triples .
code: def point_in_polygon_2d(polygon, point):
      """Check whether a point is inside, outside, or on a polygon.
  
      *DON'T* repeat the first point at the end of the polygon list.
      Points are represented as (x, y, z) triples.
  
      Args:
          polygon: A list of points describing the polygon.
                   Can be in clockwise or counterclockwise order.
          point: The point to test.
  
      Returns:
           1 if the point is inside the polygon.
           0 if the point is on the polygon.
           -1 if the point is outside the polygon.
      """
      return geometry.gmPointInPolygon2D(polygon, point)
code_tokens: def point_in_polygon_2d ( polygon , point ) : return geometry . gmPointInPolygon2D ( polygon , point )
short_docstring: Check whether a point is inside, outside, or on a polygon.
short_docstring_tokens: Check whether a point is inside outside or on a polygon .
comment: """Check whether a point is inside, outside, or on a polygon.
  
      *DON'T* repeat the first point at the end of the polygon list.
      Points are represented as (x, y, z) triples.
  
      Args:
          polygon: A list of points describing the polygon.
                   Can be in clockwise or counterclockwise order.
          point: The point to test.
  
      Returns:
           1 if the point is inside the polygon.
           0 if the point is on the polygon.
           -1 if the point is outside the polygon.
      """