tvoinarovskyi/battlegrounds

Implement polygon shape

Closed this issue · 1 comments

  • Create a polygon class in engine/geometry/polygon.py which implements BaseShape abstract class (with point in shape, distance and intersection tests).
  • Add tests for the class to tests/testgeometry/test_polygon.py

Added triangle special case for containment and distance checks