Class Semicircle
Extends
Arc.
A semicircle is a special arc defined by two points. The arc hits both points.
Defined in: Arc.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Semicircle(p1,p2)
|
Field Attributes | Field Name and Description |
---|---|
The midpoint of the two defining points.
|
- Fields borrowed from class Arc:
- anglepoint, center, radiuspoint
- Fields borrowed from class JXG.Curve:
- curveType, handDrawing, numberPoints
- Fields borrowed from class JXG.GeometryElement:
- addEvent, ancestors, board, childElements, descendants, draft, dump, elementClass, elType, eventHandlers, fillOpacity, fixed, frozen, getAttribute, hasLabel, highlighted, highlightFillOpacity, highlightStrokeOpacity, highlightStrokeWidth, id, isDraggable, isReal, methodMap, mouseover, name, needsRegularUpdate, needsUpdate, notExistingParents, numTraces, quadraticform, removeEvent, scalable, stdform, strokeOpacity, subs, symbolic, trace, traceAttributes, traces, transformations, type, visProp, withLabel
- Methods borrowed from class Arc:
- getRadius, hasPointSector, Radius
- 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, dash, fillColor, getAttributes, getLabelAnchor, getName, getParents, getProperty, getTextAnchor, getType, hideElement, highlight, highlightFillColor, highlightStrokeColor, labelColor, noHighlight, off, on, remove, resolveShortcuts, setArrow, setAttribute, setLabelText, setProperty, shadow, showElement, snapToGrid, strokeColor, strokeWidth, triggerEventHandlers, visible
- 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
Semicircle(p1,p2)
// Create an arc out of three free points var p1 = board.create('point', [4.5, 2.0]); var p2 = board.create('point', [1.0, 0.5]); var a = board.create('semicircle', [p1, p2]);
- Parameters:
- {JXG.Point_JXG.Point} p1,p2
- The result will be a composition of an arc drawn clockwise from p1 and p2 and the midpoint of p1 and p2.
- Throws:
- {Error}
- If the element cannot be constructed with the given parent objects an exception is thrown.
Field Detail
{Midpoint}
midpoint
The midpoint of the two defining points.