compute the MAX interval of two intervals
extracted from Implicit Solid Modeling Using Interval Methods
npm install interval-max
Intervals are represented by a 2 component array (e.g. [0, 1]
)
var imax = require('interval-max');
console.log(imax([0, 2], [3, 4]));
// outputs: [3, 4]
imax(a
, b
, out
)
a
is the first intervalb
is the second intervalout
is an optional 2 part araray. Provide this to avoid generating garbage- returns: 2 part array