point-in-simplex

0.0.0 • Public • Published

point-in-simplex

Checks if a point is contained in a simplex

Usage

First install:

npm install point-in-simplex

Then use as follows:

var pis = require("point-in-simplex")
 
var triangle = [[0,0], [0,1], [1,0]]
 
console.log(pis(triangle, [0.2, 0.2])) // Prints: true
console.log(pis(triangle, [100, 100])) // Prints: false

Credits

(c) 2013 Mikola Lysenko. MIT License

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.0
    1

Package Sidebar

Install

npm i point-in-simplex

Weekly Downloads

1

Version

0.0.0

License

MIT

Last publish

Collaborators

  • mikolalysenko