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
Copy file name to clipboardExpand all lines: README.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ It's released under the [MIT](http://en.wikipedia.org/wiki/MIT_License) license.
18
18
19
19
Current version: `0.2`. [Annotated source code](http://jriecken.github.io/sat-js/docs/SAT.html) is available.
20
20
21
-
Nicely compresses with the [Google Closure Compiler](https://developers.google.com/closure/compiler/) in **Advanced** mode to about 5KB (1.8KB gzipped)
21
+
Nicely compresses with the [Google Closure Compiler](https://developers.google.com/closure/compiler/) in **Advanced** mode to about 6KB (1.9KB gzipped)
22
22
23
23
<aname="classes"></a>
24
24
Classes
@@ -221,10 +221,27 @@ Test two polygons
221
221
222
222
No collision between two Boxes
223
223
224
+
var V = SAT.Vector;
224
225
var B = SAT.Box;
225
226
226
227
var box1 = new B(new V(0,0), 20, 20).toPolygon();
227
228
var box2 = new B(new V(100,100), 20, 20).toPolygon();
228
229
var collided = SAT.testPolygonPolygon(box1, box2);
0 commit comments