One minute
Polygon Calculator
Polygon Calculator is a C++ program that provides an intuitive and easy way of doing different calculus related to polygon geometry from the computer terminal.
The user can input polygons as a set of points, and calculate metrics such as area or perimeter. Multiple polygons can be inputed, so it’s possible to generete intersections and bounding boxes.
All results can be saved in a .txt file and loaded again. The program also supports plotting inputed polygons and results in a .png image, with the pngwritter library. All code is created with optimization in mind, using several complex algorithms to keep computational costs low.
This project was developed for AA2-GCED class, as a way of testing C++ and algorithm knowledge learnt during the course. The complete code and extensive documentation can be found at this github repository.