You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(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)