bbox-match
v0.1.0
Published
Just match bboxes
Downloads
5
Readme
bbox-match
Just match bboxes.
INITIAL AND NAIVE IMPLEMENTATION
Installation
npm install bbox-match
Usage
const bboxMatch = require('bbox-match')
const match = bboxMatch([
{ name: 'A', bbox: [0, 0, 1, 1] },
{ name: 'B', bbox: [0.5, 0.5, 2, 2] }
])
console.log(match([0.1, 0.1, 1.05, 1.05]).name)
// => 'A'
License
MIT