aboutsummaryrefslogtreecommitdiff
path: root/src/math/triangle.rs
Commit message (Collapse)AuthorAgeLines
* Fix corner case not being handledArne Dußin2020-11-23-0/+35
| | | | | | | | Previously, the algorithm to check, if a line-segment is inside a polygon did not have a special case for when the start or end of the segment is on a polygon corner. In case this corner is reflexive, checking against one line between this corner and an adjacent one may not be enough.
* Apply clippy lintsArne Dußin2020-11-21-4/+2
|
* Add unit tests for triangleArne Dußin2020-11-21-0/+57
|
* Add triangle struct and triangulation templateArne Dußin2020-11-21-0/+161