interval-subtract
subtract an interval from another where an interval is a 2 part array
extracted from Implicit Solid Modeling Using Interval Methods
install
npm install interval-subtract
use
var isub = ; console;// output: [-3, -1] console;// output: [0, 0]
api signature
isub(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