affine-hull

WebJar for affine-hull

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

affine-hull
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

affine-hull
WebJar for affine-hull
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/mikolalysenko/affine-hull

Download affine-hull

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/affine-hull/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>affine-hull</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/affine-hull/
implementation 'org.webjars.npm:affine-hull:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/affine-hull/
implementation ("org.webjars.npm:affine-hull:1.0.0")
'org.webjars.npm:affine-hull:jar:1.0.0'
<dependency org="org.webjars.npm" name="affine-hull" rev="1.0.0">
  <artifact name="affine-hull" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='affine-hull', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "affine-hull" % "1.0.0"
[org.webjars.npm/affine-hull "1.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : robust-orientation jar [1.1.3,2)

Project Modules

There are no modules declared in this project.

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-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

Versions

Version
1.0.0