OneLoneCoder / olcUTIL_Geometry2D

A Single-Header 2D Geometry Analysis Library
Other
284 stars 51 forks source link

olcUTIL_Geometry2D

A stand-alone single header file that handles many and various 2D geometric interactions.

NOTE! The olc::PixelGameEngine is NOT required to use this file, though it works very well with it!

The Geometry2D (& PGE) utility file defines:

I would like this file to provide functions that cover every combination Shape Vs Shape for the following functions:

This project is a collaborative effort, and a continuous "Work-In-Progress" - If you feel you can contribute then please do so! There are many functions required, and we've not yet implemented all of them. Check the header file for the completion matrix. All contributors will becredited in the header file, and this will be a fantastic resource/reference for those that might need a function or two for their other projects!

So, please, help me!

I've included a simple test application (that will also need some improvement as the library matures), submit issues and PRs to get it finished :D

(Issues and PRs for PGE or QuickGUI will be ignored, please use appropriate repo/forums for that)