
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
robust-point-in-simplex
Advanced tools
Exact point in simplex predicate.
var pointInSimplex = require("robust-point-in-simplex")
var simplex = [
[0,0],
[0,1],
[1,0]
]
console.log(pointInSimplex(simplex, [0.25, 0.25]))
require("robust-point-in-simplex")(simplex, point)Exactly tests if a given point is contained in a simplex.
simplex is an array of n+1 pointspoint is a length n array of floatsReturns An integer indicating where the point lies on the simplex
>0 if the point is contained in the simplex<0 if the point is outside the simplex0 if the point lies on the boundary of the simplex(c) 2013 Mikola Lysenko. MIT License
FAQs
Exact geometric predicate to classify a point against a simplex
The npm package robust-point-in-simplex receives a total of 16 weekly downloads. As such, robust-point-in-simplex popularity was classified as not popular.
We found that robust-point-in-simplex demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.