Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

geometry-2d

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geometry-2d - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

3

lib/point.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc