Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
point_in_polygon_example.cc File Reference

Point-in-polygon classification with winding number. More...

#include <geom_algorithms.H>
#include <cassert>
#include <iostream>
Include dependency graph for point_in_polygon_example.cc:

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 ()
 

Detailed Description

Point-in-polygon classification with winding number.

Demonstrates:

See also
geom_algorithms.H
PointInPolygonWinding

Definition in file point_in_polygon_example.cc.

Function Documentation

◆ build_concave_polygon()

static Polygon build_concave_polygon ( )
static

Definition at line 69 of file point_in_polygon_example.cc.

References Aleph::Polygon::add_vertex(), and Aleph::Polygon::close().

Referenced by main().

◆ main()

◆ print_banner()

static void print_banner ( const char *  title)
static

Definition at line 52 of file point_in_polygon_example.cc.

Referenced by main().

◆ to_cstr()

static const char * to_cstr ( const PointInPolygonWinding::Location  loc)
static

Definition at line 58 of file point_in_polygon_example.cc.

Referenced by main().