Skip to content

semibran/rect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Basic helper methods for rectangles

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published