Class Parabola
Extends
JXG.Curve.
This element is used to provide a constructor for a parabola. A parabola is given by one point (the focus) and a line (the directrix).
Defined in: Conic.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Parabola(point,line)
|
- 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
Parabola(point,line)
// Create a parabola by a point C and a line l. var A = board.create('point', [-1,4]); var B = board.create('point', [-1,-4]); var l = board.create('line', [A,B]); var C = board.create('point', [1,1]); var el = board.create('parabola',[C,l]);
- Parameters:
- {JXG.Point|array_JXG.Line} point,line
- Parent elements are a point and a line. Optional parameters three and four are numbers which define the curve length (e.g. start/end). Default values are -pi and pi.
- Throws:
- {Exception}
- If the element cannot be constructed with the given parent objects an exception is thrown.