Usage (signatures)
board.create('curvedifference', [curve1, curve2]);
Parameters
| Name | Type | Description |
|---|---|---|
curve1 |
Curve | Polygon | Circle | First element from which the second element is "subtracted" |
curve2 |
Curve | Polygon | Circle | Second element which is subtracted from the first element |
Example
var f = board.create('functiongraph', ['cos(x)']);
var ineq = board.create('inequality', [f], {inverse: true, fillOpacity: 0.1});
var circ = board.create('circle', [[0,0], 4]);
var clip = board.create('curvedifference', [ineq, circ], {fillColor: 'yellow', fillOpacity: 0.6});
Attributes
Own
none
Inherited
Members
Own
none
Inherited
Events
Own
none
Inherited
Details
- Type
- JXG.Curve
- See
- Source
- base/curve.js, line 3005