Current collected state Current
Observed since 20 Oct, 19:10 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
2d-bounds
barebones array based 2d bounds compute
barebones array based 2d bounds compute
npm install 2d-bounds
bounds2(points [, out])
points - array of 2+ item arrays (i.e. [[0, 0], [1, 1]]) representing an array of 2d vectorsout - avoid creating garbage by reusing an arrayreturns out which is a 4 component array: [lowX, lowY, hiX, hiY]
var bounds2 = require('2d-bounds');
var polyline = [
[-100, 100],
[0, 0],
[10, 200]
];
var b = bounds2(polyline);
console.log(b);
// outputs: [ -100, 0, 10, 200 ]
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
tapeEnvironment{
"local_name": "tape",
"alias": false,
"peer_metadata": null
} | ^4.0.0 | development |
Source distribution
{
"shasum": "1475604e25aa7a1607d8bbfd42589fa697920cd0",
"tarball": "https://registry.npmjs.org/2d-bounds/-/2d-bounds-1.0.0.tgz",
"integrity": "sha512-0XEbD8Rb0jbSxnwWyKKaMQdvT5eZIh9mmKRm0Meh5Fdu2J3cx7DnThiHZmhsPhGCxrfZeEh4LDYmfYv4OwR3CQ==",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIQCKUJOVua0g6UV+pJ1VYtMMVp5a97rWJ7JVx4IYUP/BbAIgK1m1sUYfZSYee3DTLlTxzJ+Ur2JMrc4Qbwnkou9SQQk="
}
]
}Observed since 20 Oct, 19:10 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:56713a6655cbcd30d71d977b975d83beec34737a5c5da944c713e9ee6dc4f92e