https://github.com/s-r-x/contra
:arrow_upper_right: A Swiss army knife for 2D vectors math
https://github.com/s-r-x/contra
2d math vector
Last synced: about 1 month ago
JSON representation
:arrow_upper_right: A Swiss army knife for 2D vectors math
- Host: GitHub
- URL: https://github.com/s-r-x/contra
- Owner: s-r-x
- License: mit
- Created: 2019-03-03T05:22:57.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-27T10:46:27.000Z (over 3 years ago)
- Last Synced: 2025-03-17T09:16:13.653Z (2 months ago)
- Topics: 2d, math, vector
- Language: TypeScript
- Homepage: https://s-r-x.github.io/contra
- Size: 448 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Contra
A Swiss army knife for 2D vectors math
[Docs](https://s-r-x.github.io/contra)
## Usage
```sh
npm install contra.js
```
* * *
```typescript
import { Vector } from 'contra.js';Vector.create(1, 2).add(Vector.random()).sub(1).unit().print();
```