# @azleur/vec2

> `Vec2` is yet another 2D vector class. It has a rich feature set for basic vector creation and manipulation. It looks like this:

Latest version **0.2.5** (published 2021-02-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install @azleur/vec2
pnpm add @azleur/vec2
yarn add @azleur/vec2
bun add @azleur/vec2
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.5 |
| Published | 2021-02-04 |
| First published | 2019-11-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | azleur |
| Maintainers | azleur |

## Links

- npm: https://www.npmjs.com/package/@azleur/vec2
- Repository: https://github.com/Azleur/vec2
- npm.io page: https://npm.io/package/@azleur/vec2

## Recent versions

- 0.2.5 (latest) — 2021-02-04
- 0.2.4 — 2021-02-04
- 0.2.3 — 2021-02-03
- 0.2.2 — 2020-07-12
- 0.2.1 — 2020-06-30
- 0.2.0 — 2020-06-29
- 0.1.5 — 2020-06-23
- 0.1.4 — 2020-06-23
- 0.1.3 — 2020-05-01
- 0.1.2 — 2020-04-30
- 0.1.1 — 2019-11-08
- 0.1.0 — 2019-11-07

## README

# 2D Vector class

`Vec2` is yet another 2D vector class.
It has a rich feature set for basic vector creation and manipulation.
It looks like this:

```typescript
const vec1 = new Vec2(1, 2); // vec1 = {x: 1, y: 2}
vec1.x = 3; // vec1 = {x: 3, y: 2}
const vec2 = vec1.Times(3); // vec2 = {x: 9, y: 6}
const vec3 = vec2.Sub(vec1); // vec3 = {x: 6, y: 4}
...

```

The code is a single TypeScript file with doc comments, so take a look for more details!

---
_Source: https://npm.io/package/@azleur/vec2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
