|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Point-in-polygon classification with winding number. More...
Go to the source code of this file.
Functions | |
| static void | print_banner (const char *title) |
| static const char * | to_cstr (const PointInPolygonWinding::Location loc) |
| static Polygon | build_concave_polygon () |
| int | main () |
Point-in-polygon classification with winding number.
Demonstrates:
PointInPolygonWinding::locate() (Inside/Boundary/Outside)PointInPolygonWinding::contains() convenience predicateDefinition in file point_in_polygon_example.cc.
|
static |
Definition at line 69 of file point_in_polygon_example.cc.
References Aleph::Polygon::add_vertex(), and Aleph::Polygon::close().
Referenced by main().
| int main | ( | ) |
Definition at line 84 of file point_in_polygon_example.cc.
References Aleph::Array< T >::append(), build_concave_polygon(), Aleph::divide_and_conquer_partition_dp(), Aleph::geom_number_to_double(), Aleph::Point::get_x(), Aleph::Point::get_y(), print_banner(), and to_cstr().
|
static |
Definition at line 52 of file point_in_polygon_example.cc.
Referenced by main().
|
static |
Definition at line 58 of file point_in_polygon_example.cc.
Referenced by main().