Newly Paranoid Maintainers
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    interval-maxpublic

    interval-max

    compute the MAX interval of two intervals

    extracted from Implicit Solid Modeling Using Interval Methods

    install

    npm install interval-max

    use

    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]

    api signature

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

    install

    npm i interval-max

    Downloadslast 7 days

    0

    version

    1.0.0

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar