Esempio n. 1
0
bool geo_polygon_contains_point__( const geo_polygon_type * polygon , double x , double y, bool force_edge_inside) {
  return geo_util_inside_polygon__( double_vector_get_const_ptr( polygon->xcoord ) ,
                                    double_vector_get_const_ptr( polygon->ycoord ) ,
                                    double_vector_size( polygon->xcoord ) ,
                                    x , y , force_edge_inside);
}
Esempio n. 2
0
bool geo_util_inside_polygon(const double * xlist , const double * ylist , int num_points , double x0 , double y0) {
  return geo_util_inside_polygon__(xlist , ylist , num_points , x0 , y0 , false );
}