Block.prototype.splitBetween = function()

in src/lib/vpsc.js [211:223]


    Block.prototype.splitBetween = function (vl, vr) {
        /* DEBUG
                    console.assert(vl.block === this);
                    console.assert(vr.block === this);
        DEBUG */
        var c = this.findMinLMBetween(vl, vr);
        if (c !== null) {
            var bs = Block.split(c);
            return { constraint: c, lb: bs[0], rb: bs[1] };
        }
        // couldn't find a split point - for example the active path is all equality constraints
        return null;
    };