An open API service indexing awesome lists of open source software.

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

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();
```