MonotoneChain.js 420 B

123456789101112131415
  1. export default class MonotoneChain {
  2. constructor() {
  3. MonotoneChain.constructor_.apply(this, arguments)
  4. }
  5. static constructor_() {
  6. this.mce = null
  7. this.chainIndex = null
  8. const mce = arguments[0], chainIndex = arguments[1]
  9. this.mce = mce
  10. this.chainIndex = chainIndex
  11. }
  12. computeIntersections(mc, si) {
  13. this.mce.computeIntersectsForChain(this.chainIndex, mc.mce, mc.chainIndex, si)
  14. }
  15. }