Class MinorArc
Extends
Curve.
A minor arc is a segment of the circumference of a circle having measure less than or equal to
180 degrees (pi radians). It is defined by a center, one point that
defines the radius, and a third point that defines the angle of the arc.
Defined in: Arc.js.
Constructor Attributes | Constructor Name and Description |
---|---|
MinorArc(p1,p2,p3)
|
- 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
MinorArc(p1,p2,p3)
// 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
- . Minor arc is an arc of a circle around p1 having measure less than or equal to 180 degrees (pi radians) and starts at p2. The radius is determined by p2, the angle by p3.
- Throws:
- {Error}
- If the element cannot be constructed with the given parent objects an exception is thrown.