Fill the intersection area of three circles: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
c.updateDataArray = function() { | c.updateDataArray = function() { | ||
// The three paths have to be connected | // The three paths have to be connected | ||
this.dataX = cu1.dataX.slice(0,-1).concat(cu2.dataX) | this.dataX = cu1.dataX.slice(0,-1).concat(cu2.dataX.slice(0,-1)).concat(cu3.dataX); | ||
this.dataY = cu1.dataY.slice(0,-1).concat(cu2.dataY) | this.dataY = cu1.dataY.slice(0,-1).concat(cu2.dataY.slice(0,-1)).concat(cu3.dataY); | ||
console.log(this.dataX.length); | console.log(this.dataX.length); | ||
if (this.dataX.length<4) { | if (this.dataX.length<4) { |