# @jgtools/jgmath

> Math utils

Latest version **1.0.8** (published 2024-11-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jgtools/jgmath
pnpm add @jgtools/jgmath
yarn add @jgtools/jgmath
bun add @jgtools/jgmath
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2024-11-25 |
| First published | 2022-12-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Erik1001 |
| Maintainers | jgtools |
| Keywords | javascript, typescript |

## Links

- npm: https://www.npmjs.com/package/@jgtools/jgmath
- Repository: https://github.com/JGTools/JGMath
- Homepage: https://github.com/JGTools/JGMath#readme
- Issues: https://github.com/JGTools/JGMath/issues
- npm.io page: https://npm.io/package/@jgtools/jgmath

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.8 (latest) — 2024-11-25
- 1.0.7 — 2023-08-22
- 1.0.6 — 2023-08-22
- 1.0.5 — 2023-08-22
- 1.0.4 — 2023-01-19
- 1.0.3 — 2022-12-22
- 1.0.2 — 2022-12-22
- 1.0.1 — 2022-12-08
- 1.0.0 — 2022-12-08

## README

# JGMath

[![npm](https://img.shields.io/npm/v/@jgtools/jgmath)](https://www.npmjs.com/package/@jgtools/jgmath)
[![npm](https://img.shields.io/npm/dm/@jgtools/jgmath)](https://www.npmjs.com/package/@jgtools/jgmath)
[![GitHub](https://img.shields.io/github/license/jgtools/jgmath)](https://github.com/git/git-scm.com/blob/main/MIT-LICENSE.txt)

Math utils

## Installation

### Using npm

```bash
npm i @jgtools/jgmath
```

```javascript
// import all functions using a namespace
import * as JGMath from "@jgtools/jgmath";
// or import functions individually
import { getAngle } from "@jgtools/jgmath";
// ...
```

### Using cdn

```html
<script type="module">
    // import all functions using a namespace
    import * as JGMath from "https://cdn.jsdelivr.net/npm/@jgtools/jgmath@1.0.7/dist/index.min.js";
    // or import functions individually
    import { getAngle } from "https://cdn.jsdelivr.net/npm/@jgtools/jgmath@1.0.7/dist/index.min.js";
    // ...
</script>
```

## Usage

```javascript
import { getAngle } from "@jgtools/jgmath";

const p1 = { x: 1, y: 2 };
const p2 = { x: 5, y: 5 };
const a = getAngle(p1, p2);
```

## License

MIT

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