1.0.3 • Published 2 years ago

@infra7/vec2 v1.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

@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]);
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago