Class Inequality
JXG.GeometryElement
↳ JXG.Curve
↳ Inequality
Creates an area indicating the solution of a linear inequality.
Defined in: composition.js.
Extends
JXG.Curve.
Constructor Attributes | Constructor Name and Description |
---|---|
Inequality(l)
Display the solution set of a linear inequality (less than or equal to).
|
- Fields borrowed from class JXG.Curve:
- dataX, dataY, numberPoints, qdt
- Fields borrowed from class JXG.GeometryElement:
- _org_type, _pos, ancestors, baseElement, board, childElements, dash, descendants, draft, dump, elementClass, elType, fillColor, fillOpacity, fixed, frozen, hasLabel, highlight, highlighted, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, id, isDraggable, isReal, lastDragTime, methodMap, mouseover, name, needsRegularUpdate, needsUpdate, notExistingParents, numTraces, parents, quadraticform, rendNode, scalable, shadow, snapToGrid, stdform, strokeColor, strokeOpacity, strokeWidth, subs, symbolic, trace, traceAttributes, traces, transformations, type, visible, visProp, withLabel
Field Attributes | Field Name and Description |
---|---|
By default an inequality is less (or equal) than.
|
- Fields borrowed from class JXG.Curve:
- dataX, dataY, numberPoints, qdt
- Fields borrowed from class JXG.GeometryElement:
- _org_type, _pos, ancestors, baseElement, board, childElements, dash, descendants, draft, dump, elementClass, elType, fillColor, fillOpacity, fixed, frozen, hasLabel, highlight, highlighted, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, id, isDraggable, isReal, lastDragTime, methodMap, mouseover, name, needsRegularUpdate, needsUpdate, notExistingParents, numTraces, parents, quadraticform, rendNode, scalable, shadow, snapToGrid, stdform, strokeColor, strokeOpacity, strokeWidth, subs, symbolic, trace, traceAttributes, traces, transformations, type, visible, visProp, withLabel
- Methods borrowed from class JXG.Curve:
- _borderCase, _insertPoint, _intersectWithBorder, _isOutside, _isUndefined, _plotRecursive, _triangleDists, addTransform, allocatePoints, checkReal, generateTerm, hasPoint, interpolationFunctionFromArray, isDistOK, isSegmentDefined, isSegmentOutside, maxX, minX, notifyParents, update, updateCurve, updateDataArray, updateParametricCurve, updateParametricCurveNaive, updateParametricCurveOld, updateRenderer, updateTransform, X, Y, Z
- Methods borrowed from class JXG.GeometryElement:
- _set, addChild, addDescendants, addParents, addRotation, animate, bounds, clearTrace, cloneToBackground, countChildren, createGradient, createLabel, draggable, generatePolynomial, getAttribute, getAttributes, getLabelAnchor, getName, getParents, getProperty, getTextAnchor, getType, handleSnapToGrid, hideElement, labelColor, noHighlight, normalize, prepareUpdate, remove, removeChild, removeDescendants, resolveShortcuts, setArrow, setAttribute, setDash, setLabel, setLabelText, setName, setParents, setPosition, setPositionDirectly, setProperty, showElement, snapToPoints
- Events borrowed from class JXG.GeometryElement:
- attribute, attribute:<attribute><attribute>, down, drag, mousedown, mousedrag, mousemove, mouseout, mouseover, mouseup, move, out, over, touchdown, touchdrag, touchup, up
Class Detail
Inequality(l)
Display the solution set of a linear inequality (less than or equal to).
- Parameters:
- {JXG.Line} l
- The area drawn will be the area below this line. With the attribute inverse:true, the inequality 'greater than or equal to' is shown.
- Throws:
- {Error}
- If the element cannot be constructed with the given parent objects an exception is thrown.
- Examples:
var p = board.create('point', [1, 3]), q = board.create('point', [-2, -4]), l = board.create('line', [p, q]), ineq = board.create('inequality', [l]); ineq = board.create('inequality', [l]);
// Plot the inequality // y >= 2/3 x + 1 // or // 0 >= -3y + 2x +1 var l = board.create('line', [1, 2, -3]), ineq = board.create('inequality', [l], {inverse:true});
Field Detail
{Boolean}
inverse
By default an inequality is less (or equal) than. Set inverse to true will consider the inequality
greater (or equal) than.
Defined in: options.js.
Defined in: options.js.
- Default Value:
- false