Class Locus
Extends
JXG.Curve.
This element is used to visualize the locus of a given dependent point.
Defined in: Composition.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Locus(p)
The locus element is used to visualize the curve a given point describes.
|
Field Attributes | Field Name and Description |
---|---|
The time it took to calculate the locus
|
|
The implicit definition of the locus.
|
- Fields borrowed from class JXG.Curve:
- curveType, handDrawing, numberPoints
- Fields borrowed from class JXG.GeometryElement:
- addEvent, ancestors, board, childElements, dash, descendants, draft, dump, elementClass, elType, eventHandlers, fillColor, fillOpacity, fixed, frozen, getAttribute, hasLabel, highlight, highlighted, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, id, isDraggable, isReal, methodMap, mouseover, name, needsRegularUpdate, needsUpdate, notExistingParents, numTraces, quadraticform, removeEvent, scalable, shadow, snapToGrid, stdform, strokeColor, strokeOpacity, strokeWidth, subs, symbolic, trace, traceAttributes, traces, transformations, type, visible, visProp, withLabel
- Methods borrowed from class JXG.Curve:
- addTransform, allocatePoints, generateTerm, hasPoint, isDistOK, isSegmentOutside, maxX, minX, notifyParents, setPosition, setPositionDirectly, update, updateCurve, updateDataArray, updateParametricCurve, updateParametricCurveNaive, updateRenderer, updateTransform, Z
- Methods borrowed from class JXG.GeometryElement:
- addChild, addRotation, animate, bounds, clearTrace, cloneToBackground, createLabel, getAttributes, getLabelAnchor, getName, getParents, getProperty, getTextAnchor, getType, hideElement, labelColor, noHighlight, off, on, remove, resolveShortcuts, setArrow, setAttribute, setLabelText, setProperty, showElement, triggerEventHandlers
- 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
Locus(p)
The locus element is used to visualize the curve a given point describes.
// This examples needs JXG.Server up and running, otherwise it won't work. p1 = board.create('point', [0, 0]); p2 = board.create('point', [6, -1]); c1 = board.create('circle', [p1, 2]); c2 = board.create('circle', [p2, 1.5]); g1 = board.create('glider', [6, 3, c1]); c3 = board.create('circle', [g1, 4]); g2 = board.create('intersection', [c2,c3,0]); m1 = board.create('midpoint', [g1,g2]); loc = board.create('locus', [m1], {strokeColor: 'red'});
- Parameters:
- {JXG.Point} p
- The constructed curve is the geometric locus of the given point.
- Throws:
- {Error}
- If the element cannot be constructed with the given parent objects an exception is thrown.
Field Detail
{Number}
ctime
The time it took to calculate the locus
{String}
eq
The implicit definition of the locus.