# bound-points

> Find a bounding box for a set of points

Latest version **1.0.0** (published 2015-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install bound-points
pnpm add bound-points
yarn add bound-points
bun add bound-points
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-02-19 |
| First published | 2015-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Author | Mikola Lysenko |
| Maintainers | mikolalysenko |
| Keywords | bounding, box, axis, aligned, aabb, bound, point, points, mesh |

## Links

- npm: https://www.npmjs.com/package/bound-points
- Repository: https://github.com/mikolalysenko/bound-points
- Issues: https://github.com/mikolalysenko/bound-points/issues
- npm.io page: https://npm.io/package/bound-points

## Alternatives

- [react-native-root-siblings](https://npm.io/package/react-native-root-siblings.md) — 102.9K weekly downloads
- [post-robot](https://npm.io/package/post-robot.md) — 93.7K weekly downloads
- [@praxisui/dialog](https://npm.io/package/@praxisui/dialog.md) — 2.0K weekly downloads
- [easy-toggle-state](https://npm.io/package/easy-toggle-state.md) — 350 weekly downloads
- [ngx-lightbox-evp](https://npm.io/package/ngx-lightbox-evp.md) — 19 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-02-19

## README

bound-points
============
Computes a bounding box from a set of points in any dimension.

# Example

```javascript
var getBounds = require('bound-points')

var points = [[-1, 1], [5, 10], [-8, 13]]
console.log('2d:', getBounds(points))

var mesh = require('bunny')
console.log('3d:', getBounds(mesh.positions))
```

Output:

```
2d: [ [ -8, 1 ], [ 5, 13 ] ]
3d: [ [ -4.958475, -0.003149, -3.729833 ],
  [ 4.94885, 9.654748, 3.810639 ] ]
```

# Install

```
npm i bound-points
```

# API

#### `var bounds = require('bound-points')(points)`
Computes an axis aligned bounding box for a set of points.

* `points` is an array of points

**Returns** A pair of upper and lower bounds for the point set.

# License
(c) 2015 Mikola Lysenko. MIT License

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