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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    1
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @infra7/vec2

Weekly Downloads

1

Version

1.0.3

License

Apache-2.0

Unpacked Size

14.6 kB

Total Files

5

Last publish

Collaborators

  • vincent0700