2D Primitives
Opened this issue · 0 comments
2020wmarvil commented
Details
Provide the following structs:
Circle2D
Triangle2D
Quad2D
Polygon2D
For each, provide the following functions:
- Area
- Perimeter
- Intersection test against each other type
- Winding order (clockwise vs counter-clockwise)
- Barycentric interpolations
For Polygon2D, also implement:
- Convexity test
- Well-Formed/Validity test