# @ros2jsguy/three-math-ts

> Stand-alone TypeScript version of three.js math

Latest version **0.143.1** (published 2022-08-16) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @ros2jsguy/three-math-ts
pnpm add @ros2jsguy/three-math-ts
yarn add @ros2jsguy/three-math-ts
bun add @ros2jsguy/three-math-ts
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.143.1 |
| Published | 2022-08-16 |
| First published | 2022-06-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | ros2jsguy |
| Maintainers | ros2jsguy |
| Keywords | math, vector math, matrix math, matrix, vector, vector3, euler, quaternion, linear algebra |

## Links

- npm: https://www.npmjs.com/package/@ros2jsguy/three-math-ts
- Repository: https://github.com/ros2jsguy/three.math
- Homepage: https://github.com/ros2jsguy/three.math#readme
- Issues: https://github.com/ros2jsguy/three.math/issues
- npm.io page: https://npm.io/package/@ros2jsguy/three-math-ts

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 0.143.1 (latest) — 2022-08-16
- 0.143.0 — 2022-08-15
- 0.127.3 — 2022-07-07
- 0.127.2 — 2022-06-18

## README

# Stand-alone TypeScript version of three.js math

This module is a rewrite of the following [three.js math](https://threejs.org/docs/#api/en/math/Box2) classes in TypeScript:

* Box2
* Box3
* Color
* Cylindrical
* Euler
* Line3
* MathUtils
* Matrix (interface)
* Matrix3
* Matrix4
* Plane
* Quaternion
* Ray
* Sphere
* Spherical
* Triangle
* Vector (interface)
* Vector2
* Vector3
* Vector4

# API Documentation
The classes in TSDoc format are available [here](https://ros2jsguy.github.io/three.math/index.html).

# Changes
This module is a fork of [three-math-ts](https://github.com/chenhebing/three.math) with the following improvements:
* Reintroduced the Plane class and Plane related methods on classes such as Ray and Triangle.
* Removed deprecated api.
* [Tsdoc provided for all classes](https://ros2jsguy.github.io/three.math/index.html).
* Test suite with over 430 unit tests ported from three.js. 

# Future Plans
The decision to fork and extend the three.math repo was motivated by the
desire to improve the usability of these cool math classes and the
unresponsiveness of the repo owner to respond to an initial set of
improvement PRs. An objective of this module's author is to eventually
merge into three-math-ts should its author become active and open to
contributions.

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