affine-hull
Version:
Finds the affine hull of a point set
42 lines (30 loc) • 664 B
Markdown
affine-hull
===========
Computes the lexicographically smallest basis for the affine hull of a point set.
```javascript
var aff = require('affine-hull')
console.log(aff([
[],
[],
[],
[],
[],
[]
]))
```
Output:
```javascript
[]
```
```
npm install affine-hull
```
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
(c) 2014 Mikola Lysenko. MIT License