Skip to content

Commit

Permalink
Release 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jriecken committed Feb 17, 2018
1 parent 3d45f9e commit e521cec
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 19 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog

## In development
## O.7.0 (Feb 17, 2018)

- Add `getCentroid` method to `Polygon` that computes the [centroid](https://en.wikipedia.org/wiki/Centroid#Centroid_of_a_polygon). (Fixes #50)
- Useful for computing the center of a polygon if you want to rotate around it.

## 0.6.0 (Sept 11, 2016)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ It also supports checking whether a point is inside a circle or polygon.

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

Current version: `0.6.0`. [Annotated source code](http://jriecken.github.io/sat-js/docs/SAT.html) is available.
Current version: `0.7.0`. [Annotated source code](http://jriecken.github.io/sat-js/docs/SAT.html) is available.

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

Expand Down
4 changes: 2 additions & 2 deletions SAT.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Version 0.6.0 - Copyright 2012 - 2018 - Jim Riecken <[email protected]>
// Version 0.7.0 - Copyright 2012 - 2018 - Jim Riecken <[email protected]>
//
// Released under the MIT License - https://github.com/jriecken/sat-js
//
// A simple library for determining intersections of circles and
// polygons using the Separating Axis Theorem.
/** @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 */
/** @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 */

/*global define: false, module: false*/
/*jshint shadow:true, sub:true, forin:true, noarg:true, noempty:true,
Expand Down
29 changes: 15 additions & 14 deletions SAT.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sat",
"description": "Library for performing 2D collision detection",
"version": "0.6.0",
"version": "0.7.0",
"author": "Jim Riecken <[email protected]>",
"keywords": [
"collision detection",
Expand Down

0 comments on commit e521cec

Please sign in to comment.