JSPM

interval-max

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q12148F
  • License MIT

compute the MAX interval of two intervals

Package Exports

  • interval-max

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (interval-max) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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