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

victor

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victor - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

bower.json

@@ -8,3 +8,3 @@ {

},
"version": "0.1.1",
"version": "0.1.2",
"homepage": "https://github.com/maxkueng/victor",

@@ -11,0 +11,0 @@ "authors": [

@@ -314,2 +314,57 @@ exports = module.exports = Victor;

/**
* Inverts the X axis
*
* ### Examples:
* var vec = new Victor(100, 50);
*
* vec.invertX();
* vec.toString();
* // => x:-100, y:50
*
* @return {Victor} `this` for chaining capabilities
* @api public
*/
Victor.prototype.invertX = function () {
this.x *= -1;
return this;
};
/**
* Inverts the Y axis
*
* ### Examples:
* var vec = new Victor(100, 50);
*
* vec.invertY();
* vec.toString();
* // => x:100, y:-50
*
* @return {Victor} `this` for chaining capabilities
* @api public
*/
Victor.prototype.invertY = function () {
this.y *= -1;
return this;
};
/**
* Inverts both axis
*
* ### Examples:
* var vec = new Victor(100, 50);
*
* vec.invert();
* vec.toString();
* // => x:-100, y:-50
*
* @return {Victor} `this` for chaining capabilities
* @api public
*/
Victor.prototype.invert = function () {
this.invertX();
this.invertY();
return this;
};
/**
* Multiplies the X axis by a number

@@ -316,0 +371,0 @@ *

{
"name": "victor",
"version": "0.1.1",
"version": "0.1.2",
"description": "A JavaScript 2D vector class with methods for common vector operations",

@@ -5,0 +5,0 @@ "keywords": [

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