aboutsummaryrefslogtreecommitdiff
path: root/src/math/polygon/triangulate.rs
Commit message (Collapse)AuthorAgeLines
* Change to polygongraph instead of polygon in roomtoolArne Dußin2020-12-27-25/+34
| | | | | | | | | | | The polygon room tool used a convoluted process for determining what the user actually wants to draw. I have changed to the polygon graph instead, which makes the checks easier and restricts the user a bit less. In the process however I found a serious problem with my handling float, so everything needed to change to margin compares (which I of course should have done in the beginning. Guys, take the warning seriously and don't ignore it for ten years like I did. It will come back to haunt you.. apparently) instead of direct equality.
* Print polygon that makes the earcutting algo panicArne Dußin2020-11-26-4/+7
|
* Add polygon rooms that can actually kind of be usedArne Dußin2020-11-25-1/+2
| | | | | | It's still kind of strange to use the polygon tool, but at least it seems stable enough so I'm confident enough (and sick enough of it) to release it into the wild.
* Add triangulation functionArne Dußin2020-11-23-0/+30
|
* Add ear clipping algorithmArne Dußin2020-11-23-4/+110
|
* Move polygon functions into own modArne Dußin2020-11-21-0/+13
The math module was starting to be mostly polygon files and functions, so those got their own subfolder to make the math module less of a mess.