Skip to content

An interactive program for creating polygons and determining if a given point is inside or outside the polygons

Notifications You must be signed in to change notification settings

xuzebin/point-in-polygon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Point in Polygon

Experimenting the point-in-polygon algorithm with C++ and OpenGL.

Runtime

O(N), where N = #sides of polygon(s).

Build and Run

mkdir build && cd build
cmake ..
make

// Run example with single polygon
./Example

// Run example with multiple polygons 
// (i.e. you can draw multiple polygons and test
// if a point is inside of any of the polygons).
./Example2

Examples

Alt Text Alt Text

About

An interactive program for creating polygons and determining if a given point is inside or outside the polygons

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published