JavaScript must be enabled in order for you to use JSXGraph and JSXGraph reference. However, it seems JavaScript is either disabled or not supported by your browser.

Class Index | File Index

Elements

Classes


Element Comb

JXG.GeometryElement
   ↳ JXG.Curve
         ↳ Comb

A comb to display domains of inequalities.

Defined in: comb.js.
Extends JXG.Curve.

Element Summary
Constructor Attributes Constructor Name and Description
 
Attributes Summary
Field Attributes Field Name and Description
 
Angle under which comb elements are positioned.
 
Attributes for the curve displaying the comb.
 
Frequency of comb elements.
 
Attributes for first defining point of the comb.
 
Attributes for second defining point of the comb.
 
Should the comb go right to left instead of left to right.
 
Width of the comb.
Methods borrowed from class JXG.Curve:
_borderCase, _insertPoint, _intersectWithBorder, _isOutside, _isUndefined, _plotRecursive, _triangleDists, addTransform, allocatePoints, checkReal, generateTerm, hasPoint, interpolationFunctionFromArray, isDistOK, isSegmentDefined, isSegmentOutside, maxX, minX, moveTo, 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, fullUpdate, generatePolynomial, getAttribute, getAttributes, getLabelAnchor, getName, getParents, getProperty, getTextAnchor, getType, handleSnapToGrid, hideElement, labelColor, noHighlight, normalize, prepareUpdate, remove, removeChild, removeDescendants, resolveShortcuts, setArrow, setAttribute, setDash, setDisplayRendNode, setLabel, setLabelText, setName, setParents, setPosition, setPositionDirectly, setProperty, showElement, snapToPoints, updateVisibility
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
Element Detail
Comb
This element has no direct constructor. To create an instance of this element you have to call JXG.Board#create with type "comb".

Possible parent array combinations are:
{JXG.Point|array|function} point1
{JXG.Point|array|function} point2

Parent elements can be two elements either of type JXG.Point or array of numbers describing the coordinates of a point. In the latter case the point will be constructed automatically as a fixed invisible point. It is possible to provide a function returning an array or a point, instead of providing an array or a point.


Throws:
{Error}
If the element cannot be constructed with the given parent objects an exception is thrown. Parameter options:
Examples:
// Create a simple horizontal comb with invisible endpoints
var c = board.create('comb', [[1, 0], [3, 0]]);


				
				
var p1 = board.create('glider', [-3, 0, board.defaultAxes.x]);
var p2 = board.create('glider', [-1, 0, board.defaultAxes.x]);
var c1 = board.create('comb', [p1, p2], {width: 0.2, frequency: 0.1, angle: Math.PI / 4});


				
                
Attribute Detail
{Number} angle
Angle under which comb elements are positioned.
Defined in: options.js.
Default Value:
60 degrees

{Curve} curve
Attributes for the curve displaying the comb.
Defined in: options.js.

{Number} frequency
Frequency of comb elements.
Defined in: options.js.
Default Value:
0.2

{Point} point1
Attributes for first defining point of the comb.
Defined in: options.js.

{Point} point2
Attributes for second defining point of the comb.
Defined in: options.js.

{Boolean} reverse
Should the comb go right to left instead of left to right.
Defined in: options.js.
Default Value:
false

{Number} width
Width of the comb.
Defined in: options.js.
Default Value:
0.4

Attributes borrowed from other Elements
Attributes borrowed from class JXG.GeometryElement:
dash, draft, fillColor, fillOpacity, fixed, frozen, highlight, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, needsRegularUpdate, scalable, shadow, snapToGrid, strokeColor, strokeOpacity, strokeWidth, trace, traceAttributes, transitionDuration, visible, withLabel

Fields borrowed from other Elements
Fields borrowed from class JXG.Curve:
dataX, dataY, numberPoints, qdt
Fields borrowed from class JXG.GeometryElement:
_org_type, _pos, ancestors, baseElement, board, childElements, descendants, dump, elementClass, elType, hasLabel, highlighted, id, inherits, isDraggable, isReal, lastDragTime, methodMap, mouseover, name, needsUpdate, notExistingParents, numTraces, parents, quadraticform, rendNode, stdform, subs, symbolic, traces, transformations, type, visProp, visPropCalc

Methods borrowed from other Elements
Methods borrowed from class JXG.Curve:
_borderCase, _insertPoint, _intersectWithBorder, _isOutside, _isUndefined, _plotRecursive, _triangleDists, addTransform, allocatePoints, checkReal, generateTerm, hasPoint, interpolationFunctionFromArray, isDistOK, isSegmentDefined, isSegmentOutside, maxX, minX, moveTo, 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, fullUpdate, generatePolynomial, getAttribute, getAttributes, getLabelAnchor, getName, getParents, getProperty, getTextAnchor, getType, handleSnapToGrid, hideElement, labelColor, noHighlight, normalize, prepareUpdate, remove, removeChild, removeDescendants, resolveShortcuts, setArrow, setAttribute, setDash, setDisplayRendNode, setLabel, setLabelText, setName, setParents, setPosition, setPositionDirectly, setProperty, showElement, snapToPoints, updateVisibility

Events borrowed from other Elements
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
Documentation generated by JsDoc Toolkit 2.4.0 on Tue May 29 2018 22:14:16 GMT+0200 (CEST)