Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxkueng/victor
A JavaScript 2D vector class with methods for common vector operations
https://github.com/maxkueng/victor
Last synced: 13 days ago
JSON representation
A JavaScript 2D vector class with methods for common vector operations
- Host: GitHub
- URL: https://github.com/maxkueng/victor
- Owner: maxkueng
- License: mit
- Created: 2013-08-19T09:10:59.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-08-16T05:04:46.000Z (about 1 year ago)
- Last Synced: 2024-10-17T16:42:19.096Z (26 days ago)
- Language: JavaScript
- Homepage: http://victorjs.org/
- Size: 2.25 MB
- Stars: 832
- Watchers: 27
- Forks: 108
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Victor](./artwork/logo.png)
=============================[![Build Status](https://secure.travis-ci.org/maxkueng/victor.png?branch=master)](http://travis-ci.org/maxkueng/victor)
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](http://victorjs.org/).
## Installation
### Node.js / Browserify
```bash
npm install victor --save
``````javascript
var Victor = require('victor');
var vec = new Victor(42, 1337);
```### Bower
```bash
bower install victor --save
```### Global object
Include the pre-built script.
```html
var vec = new Victor(42, 1337);
```
## Build & test
```bash
npm run build
``````bash
npm test
```## Contributors
Ordered by date of first contribution. [Auto-generated](https://github.com/dtrejo/node-authors) on Mon, 31 Aug 2015 13:08:12 GMT.
- [Max Kueng](https://github.com/maxkueng) aka `maxkueng`
- [George Crabtree](https://github.com/supercrabtree) aka `supercrabtree`
- [Michel.Ypma](https://github.com/MichelYpma) aka `MichelYpma`
- [Chris Pearce](https://github.com/Chrisui) aka `Chrisui`
- [Beau Gunderson](https://github.com/beaugunderson) aka `beaugunderson`
- [René Bischoff](https://github.com/Fjandin) aka `Fjandin`
- [Chris Ertel](https://github.com/chrisrertel) aka `chrisrertel`
- [Heikki Ylönen](https://github.com/heikki) aka `heikki`
- [Joonas Salmela](https://github.com/undefined) aka `undefined`
- [Moritz Rebbert](https://github.com/ztiromoritz) aka `ztiromoritz`## License
MIT