Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 441 Bytes

readme.md

File metadata and controls

23 lines (17 loc) · 441 Bytes

rect

Basic helper methods for rectangles

The following methods can work on any objects of the form { x, y, width, height }.

install

npm install semibran/rect

usage

const { contains, intersects } = require('rect')

contains(a, b)

Determines if rectangle a contains rectangle b.

equals(a, b)

Determines if the four rectangle properties of a and b are equivalent.

license

MIT