geometry-2d
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -118,3 +118,2 @@ 'use strict'; | ||
value: function add(otherPoint) { | ||
(0, _assert2.default)(otherPoint instanceof Point); | ||
return new Point(this.x + otherPoint.x, this.y + otherPoint.y); | ||
@@ -156,3 +155,3 @@ } | ||
var middle = new Point((width - 1) / 2., (height - 1) / 2.); | ||
return this.subtract(middle, false).opposite().add(middle, false); | ||
return this.subtract(middle, false).opposite().add(middle); | ||
} | ||
@@ -159,0 +158,0 @@ }], [{ |
{ | ||
"name": "geometry-2d", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/point.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47580
548