1.0.3 • Published 1 year ago

@infra7/vec2 v1.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year 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

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago