1.0.1 • Published 9 years ago

interval-add v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

interval-add

add two intervals where an interval is a 2 part array

extracted from Implicit Solid Modeling Using Interval Methods

install

npm install interval-add

use

var iadd = require('interval-add');

console.log(iadd([-1, 4], [3, 3]))
// outputs: [2, 7]

api signature

iadd(a, b, out)

  • a is the first interval
  • b is the second interval
  • out is an optional 2 part araray. Provide this to avoid generating garbage
  • returns: 2 part array

license

MIT