Package Exports
- affine-hull
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (affine-hull) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
affine-hull
Computes the lexicographically smallest basis for the affine hull of a point set.
Example
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:
[0, 1, 4, 5]Install
npm install affine-hullAPI
require('affine-hull')(points)
Computes a basis for the affine hull of the set of points points.
pointsis 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