# affine-hull

> Finds the affine hull of a point set

Latest version **1.0.0** (published 2014-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install affine-hull
pnpm add affine-hull
yarn add affine-hull
bun add affine-hull
```

## 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 | 2014-11-22 |
| First published | 2014-11-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Mikola Lysenko |
| Maintainers | mikolalysenko |
| Keywords | affine, hull, geometry |

## Links

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

## Dependencies (1)

- [robust-orientation](https://npm.io/package/robust-orientation.md) ^1.1.3

## Recent versions

- 1.0.0 (latest) — 2014-11-22

## README

affine-hull
===========
Computes the lexicographically smallest basis for the affine hull of a point set.

# Example

```javascript
var aff = require('affine-hull')

console.log(aff([
  [0, 0, 0],
  [1, 0, 0],
  [2, 0, 0],
  [3, 0, 0],
  [0, 1, 0],
  [0, 0, 2]
]))
```

Output:

```javascript
[0, 1, 4, 5]
```

# Install

```
npm install affine-hull
```

# API

#### `require('affine-hull')(points)`
Computes a basis for the affine hull of the set of points `points`.

* `points` is a list of points encoded by d-tuples of numbers

**Returns** A list of indices for the generators of the affine hull of the point set

# Credits
(c) 2014 Mikola Lysenko. MIT License

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