0.1.0 • Published 7 years ago
bbox-match v0.1.0
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
0.1.0
7 years ago