Skip to content

Commit 91d4746

Browse files
committed
Release 0.5.0
1 parent a45a639 commit 91d4746

File tree

5 files changed

+20
-17
lines changed

5 files changed

+20
-17
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## In development
44

5+
## 0.5.0 (Dec 26, 2014)
6+
57
- **(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)
68
- `points`, `angle` and `offset` can no longer be manually changed. The `setPoints`, `setAngle`, and `setOffset` methods **must** be used.
79
- As a result of this, the `recalc` method is no longer part of the API.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ It also supports checking whether a point is inside a circle or polygon.
1818

1919
It's released under the [MIT](http://en.wikipedia.org/wiki/MIT_License) license.
2020

21-
Current version: `0.4.1`. [Annotated source code](http://jriecken.github.io/sat-js/docs/SAT.html) is available.
21+
Current version: `0.5.0`. [Annotated source code](http://jriecken.github.io/sat-js/docs/SAT.html) is available.
2222

2323
Nicely compresses with the [Google Closure Compiler](https://developers.google.com/closure/compiler/) in **Advanced** mode to about 6KB (2KB gzipped)
2424

SAT.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// Version 0.4.1 - Copyright 2012 - 2015 - Jim Riecken <jimr@jimr.ca>
1+
// Version 0.5.0 - Copyright 2012 - 2015 - Jim Riecken <jimr@jimr.ca>
22
//
33
// Released under the MIT License - https://github.com/jriecken/sat-js
44
//
55
// A simple library for determining intersections of circles and
66
// polygons using the Separating Axis Theorem.
7-
/** @preserve SAT.js - Version 0.4.1 - Copyright 2012 - 2015 - Jim Riecken <jimr@jimr.ca> - released under the MIT License. https://github.com/jriecken/sat-js */
7+
/** @preserve SAT.js - Version 0.5.0 - Copyright 2012 - 2015 - Jim Riecken <jimr@jimr.ca> - released under the MIT License. https://github.com/jriecken/sat-js */
88

99
/*global define: false, module: false*/
1010
/*jshint shadow:true, sub:true, forin:true, noarg:true, noempty:true,

SAT.min.js

Lines changed: 14 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sat",
33
"description": "Library for performing 2D collision detection",
4-
"version": "0.4.1",
4+
"version": "0.5.0",
55
"author": "Jim Riecken <jriecken@gmail.com>",
66
"keywords": [
77
"collision detection",

0 commit comments

Comments
 (0)