Skip to content

tmpvar/interval-min

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

interval-min

compute the MIN of two intervals

extracted from Implicit Solid Modeling Using Interval Methods

install

npm install interval-min

use

Intervals are represented by a 2 component array (e.g. [0, 1])

var imin = require('interval-min');

console.log(imin([0, 2], [3, 4]));
// outputs: [0, 2]

api signature

imin(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

About

compute the MIN of two intervals

Resources

License

Stars

Watchers

Forks

Packages

No packages published