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

A JavaScript 2D vector class with methods for common vector operations

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.9K
decreased by-5.52%
Maintainers
1
Weekly downloads
 
Created
Source

Victor

Build Status

A Javascript 2D Vector Maths Library, built using the UMD standards, so you can use it as a global object or with any module loader. It works in both Node.js and the browser.

Check out the website for documentation.

Installation

Node.js / Browserify

npm install victor --save
var Victor = require('victor');
var vec = new Victor(42, 1337);

Bower

bower install victor --save

Global object

Include the pre-built script.

<script src="./build/victor.js"></script>
<script>
var vec = new Victor(42, 1337);
</script>

Build & test

npm run build
npm test

Contributors

Ordered by date of first contribution. Auto-generated on Mon, 31 Aug 2015 13:08:12 GMT.

License

MIT

Keywords

FAQs

Package last updated on 31 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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