1
0
Fork 0

🚧 Moved return statement to bottom to avoid warnings

This commit is contained in:
joostdecock 2018-07-23 17:35:06 +00:00
parent 9934b54566
commit 7758ba81a6
7 changed files with 23 additions and 15 deletions

View file

@ -5,8 +5,6 @@ function point(x, y) {
this.y = this.round(y);
this.attributes = new attributes();
return this;
/** Rounds a value to PRECISION */
this.prototype.round = function(value) {
return Math.round(value * 1e2) / 1e2;
@ -113,6 +111,8 @@ function point(x, y) {
this.prototype.shiftOutwards = function(that, distance) {
return this.shiftTowards(that, this.dist(that) + distance);
};
return this;
}
export default point;