Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
convex-minkowski-sum
Advanced tools
Readme
Computes the Minkowski sum of two convex polytopes encoded as sets of points
var msum = require('convex-minkowski-sum')
//A is a triangle in 3D
var A = [[1,0,0], [0,1,0], [1,1,0]]
//B is a line segment
var B = [[0,-1,0], [0,1,0]]
console.log(msum(A,B))
npm install convex-minkowski-sum
var msum = require('convex-minkowski-sum')
msum(A,B)
Computes the Minkowski sum of A
and B
A
and B
are both arrays of vertices encoded as d-tuples of pointsReturns A set of points representing the Minkowski sum of A
and B
msum.pairs(A,B)
Computes a set of pairs representing the vertices of the Minkowski sum of A
and B
A
and B
are arrays of pointsReturns An array of pairs representing the vertices on the convex hull of the Minkowski sum of A
and B
msum.faces(A,B)
Computes the faces of the Minkowski sum of A
and B
A
and B
are arrays of pointsReturns An array of the faces of the Minkowski sum of A
and B
represented as pairs of lists of vertices in A
and B
respectively.
(c) 2014 Mikola Lysenko. MIT License
FAQs
Any dimensional Minkowski sums of convex polytopes
We found that convex-minkowski-sum 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.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).