Class Arc
Extends
Curve.
This element is used to provide a constructor for arc elements.
Defined in: Arc.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Arc(p1,p2,p3)
An is a segment of the circumference of a circle.
|
- Fields borrowed from class JXG.Curve:
- curveType, doAdvancedPlot, numberPoints, numberPointsHigh, numberPointsLow
- Fields borrowed from class JXG.GeometryElement:
- ancestors, board, childElements, dash, descendants, draft, fillColor, fillOpacity, fixed, hasLabel, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, id, isReal, layer, name, needsRegularUpdate, needsUpdate, notExistingParents, numTraces, quadraticform, shadow, stdform, strokeColor, strokeOpacity, strokeWidth, symbolic, trace, traces, transformations, visible, visProp
- Methods borrowed from class JXG.Curve:
- allocatePoints, cloneToBackground, generateTerm, getLabelAnchor, hasPoint, maxX, minX, notifyParents, update, updateCurve, updateDataArray, updateRenderer, X, Y
- Methods borrowed from class JXG.GeometryElement:
- addChild, addLabelToElement, animate, clearTrace, hideElement, highlight, labelColor, noHighlight, remove, setArrow, setProperty, showElement
Class Detail
Arc(p1,p2,p3)
An is a segment of the circumference of a circle.
// Create an arc out of three free points var p1 = board.create('point', [2.0, 2.0]); var p2 = board.create('point', [1.0, 0.5]); var p3 = board.create('point', [3.5, 1.0]); var a = board.create('arc', [p1, p2, p3]);
- Parameters:
- {JXG.Point_JXG.Point_JXG.Point} p1,p2,p3
- The result will be an arc of a circle around p1 through p2. The arc is drawn counter-clockwise from p2 to p3.
- Throws:
- {Exception}
- If the element cannot be constructed with the given parent objects an exception is thrown.