bbox icon indicating copy to clipboard operation
bbox copied to clipboard

Contains point

Open RasmusFonseca opened this issue 5 years ago • 1 comments

NIce library. It'd be convenient if it contained a point-inclusion test.

RasmusFonseca avatar Dec 23 '19 15:12 RasmusFonseca

That should be straightforward right?

Give a point (x, y), we can check for box.x1 <= x <= box.x2 and box.y1 <= y <= box.y2.

If this doesn't work for you, PRs are welcome.

varunagrawal avatar Oct 02 '20 18:10 varunagrawal