@infra7/vec2
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i @infra7/vec2

Weekly Downloads

2

Version

1.0.3

License

Apache-2.0

Unpacked Size

14.6 kB

Total Files

5

Last publish

Collaborators

  • vincent0700