Skip to content

Commit e521cec

Browse files
committed
Release 0.7.0
1 parent 3d45f9e commit e521cec

File tree

5 files changed

+23
-19
lines changed

5 files changed

+23
-19
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22

3-
## In development
3+
## O.7.0 (Feb 17, 2018)
4+
5+
- Add `getCentroid` method to `Polygon` that computes the [centroid](https://en.wikipedia.org/wiki/Centroid#Centroid_of_a_polygon). (Fixes #50)
6+
- Useful for computing the center of a polygon if you want to rotate around it.
47

58
## 0.6.0 (Sept 11, 2016)
69

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.6.0`. [Annotated source code](http://jriecken.github.io/sat-js/docs/SAT.html) is available.
21+
Current version: `0.7.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.6.0 - Copyright 2012 - 2018 - Jim Riecken <[email protected]>
1+
// Version 0.7.0 - Copyright 2012 - 2018 - Jim Riecken <[email protected]>
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.6.0 - Copyright 2012 - 2018 - Jim Riecken <[email protected]> - released under the MIT License. https://github.com/jriecken/sat-js */
7+
/** @preserve SAT.js - Version 0.7.0 - Copyright 2012 - 2018 - Jim Riecken <[email protected]> - 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: 15 additions & 14 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.6.0",
4+
"version": "0.7.0",
55
"author": "Jim Riecken <[email protected]>",
66
"keywords": [
77
"collision detection",

0 commit comments

Comments
 (0)