Skip to content

0.5.0

Compare
Choose a tag to compare
@jriecken jriecken released this 26 Dec 23:04
· 31 commits to master since this release
  • (POTENTIALLY BREAKING CHANGE) Make recalc on Polygon more memory efficient. It no longer does any allocations. The calcPoints,edges and normals vector arrays are reused and only created in setPoints when the number of new points is different than the current ones. (Fixes #15)
    • points, angle and offset can no longer be manually changed. The setPoints, setAngle, and setOffset methods must be used.
    • As a result of this, the recalc method is no longer part of the API.
  • Add getAABB to Polygon and Circle that calculate Axis-Aligned Bounding Boxes - thanks TuurDutoit! (Fixes #17)