@infra7/vec2
v1.0.3
Published
2 Dimensional Vector Class
Downloads
5
Readme
@infra7/vec2
2 Dimensional Vector Class
Installation
$ npm i -S @infra7/vec2
Examples
import { Mat3 } from '@infra7/mat3';
import { Vec2 } from '@infra7/vec2';
const vec = new Vec2(100, 100);
vec.transform(Mat3.Rotation(Math.PI / 4), [50, 50]);