Intersection of curves II: Difference between revisions
From JSXGraph Wiki
| A WASSERMANN (talk | contribs)  Created page with "<jsxgraph box="jxgbox" width="600" height="600">    var board = JXG.JSXGraph.initBoard('jxgbox', {         axis:true,         boundingbox:[-5, 5, 5, -5]     });      var curve..." | A WASSERMANN (talk | contribs) No edit summary | ||
| Line 17: | Line 17: | ||
|      var clip_path = board.create('curve', [[], []], {strokeWidth: 3, fillColor: 'yellow', fillOpacity: 0.6}); |      var clip_path = board.create('curve', [[], []], {strokeWidth: 3, fillColor: 'yellow', fillOpacity: 0.6}); | ||
|      clip_path.updateDataArray = function() { |      clip_path.updateDataArray = function() { | ||
|          var a = JXG.Math.Clip. |          var a = JXG.Math.Clip.intersection(curve1, curve2, this.board); | ||
|          this.dataX = a[0]; |          this.dataX = a[0]; | ||
|          this.dataY = a[1]; |          this.dataY = a[1]; | ||
