Element Conic
JXG.GeometryElement
↳ JXG.Curve
↳ Conic
This element is used to provide a constructor for a generic conic section uniquely defined by five points or a conic defined by the coefficients of the equation
Ax2+ Bxy+Cy2 + Dx + Ey + F = 0
. Then the parameters are as follows:board.create('conic', [A, C, F, B/2, D/2, E/2]);
Defined in: conic.js.
Extends JXG.Curve.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
Attributes for center point.
|
|
Attributes for foci points.
|
|
Attributes for parabola line in case the line is given by two
points or coordinate pairs.
|
|
Attributes for five points defining the conic, if some of them are given as coordinates.
|
- Methods borrowed from class JXG.Curve:
- addTransform, allocatePoints, generateTerm, getTransformationSource, hasPoint, interpolationFunctionFromArray, maxX, minX, moveTo, notifyParents, update, updateCurve, updateDataArray, updateRenderer, updateTransform, X, Y, Z
- Methods borrowed from class JXG.GeometryElement:
- _set, addChild, addDescendants, addParents, addParentsFromJCFunctions, addRotation, addTicks, animate, bounds, clearTrace, cloneToBackground, countChildren, createGradient, createLabel, draggable, formatNumberLocale, fullUpdate, generatePolynomial, getAttribute, getAttributes, getLabelAnchor, getName, getParents, getProperty, getSnapSizes, getTextAnchor, getType, handleSnapToGrid, hide, hideElement, noHighlight, normalize, prepareUpdate, remove, removeAllTicks, removeChild, removeDescendants, removeTicks, resolveShortcuts, setArrow, setAttribute, setDash, setDisplayRendNode, setLabel, setLabelText, setName, setParents, setPosition, setPositionDirectly, setProperty, show, showElement, snapToPoints, updateVisibility, useLocale
- Events borrowed from class JXG.GeometryElement:
- attribute, attribute:key, down, drag, keydrag, mousedown, mousedrag, mousemove, mouseout, mouseover, mouseup, move, out, over, pendown, pendrag, penup, touchdown, touchdrag, touchup, up
Element Detail
Conic
-
This element has no direct constructor. To create an instance of this element you have to call JXG.Board#create
with type "conic".
- Possible parent array combinations are:
-
{JXG.Point|Array} a
{JXG.Point|Array} b
{JXG.Point|Array} c
{JXG.Point|Array} d
{JXG.Point|Array} e
- Parent elements are five points.
-
{Number} a00
{Number} a11
{Number} a22
{Number} a01
{Number} a02
{Number} a12
- 6 numbers, i.e. A, C, F, B/2, D/2, E/2
- Throws:
- {Exception}
- If the element cannot be constructed with the given parent objects an exception is thrown.
- Examples:
// Create a conic section through the points A, B, C, D, and E. var A = board.create('point', [1,5]); var B = board.create('point', [1,2]); var C = board.create('point', [2,0]); var D = board.create('point', [0,0]); var E = board.create('point', [-1,5]); var conic = board.create('conic',[A,B,C,D,E]);
// Parameters: A, C, F, B/2, D/2, E/2 var conic = board.create('conic', [1, 2, -4, 0, 0, 0]);
Attribute Detail
{Point}
center
Attributes for center point.
Defined in: options.js.
Defined in: options.js.
{Point}
foci
Attributes for foci points.
Defined in: options.js.
Defined in: options.js.
{Line}
line
Attributes for parabola line in case the line is given by two
points or coordinate pairs.
Defined in: options.js.
Defined in: options.js.
{Point}
point
Attributes for five points defining the conic, if some of them are given as coordinates.
Defined in: options.js.
Defined in: options.js.
Attributes borrowed from other Elements
- Attributes borrowed from class JXG.Curve:
- lineCap
- Attributes borrowed from class JXG.GeometryElement:
- dash, dashScale, draft, dragToTopOfLayer, fillColor, fillOpacity, fixed, frozen, gradient, gradientAngle, gradientCX, gradientCY, gradientEndOffset, gradientFR, gradientFX, gradientFY, gradientR, gradientSecondColor, gradientSecondOpacity, gradientStartOffset, highlight, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, isLabel, layer, needsRegularUpdate, nonnegativeOnly, precision, priv, rotatable, scalable, shadow, snapToGrid, strokeColor, strokeOpacity, strokeWidth, tabindex, trace, traceAttributes, transitionDuration, transitionProperties, viewport, visible, withLabel
Fields borrowed from other Elements
- Fields borrowed from class JXG.Curve:
- dataX, dataY, numberPoints, qdt, ticks
- Fields borrowed from class JXG.GeometryElement:
- _org_type, _pos, ancestors, baseElement, board, childElements, descendants, dump, elementClass, elType, hasLabel, highlighted, id, inherits, isDraggable, isReal, lastDragTime, methodMap, mouseover, name, needsUpdate, notExistingParents, numTraces, parents, quadraticform, rendNode, stdform, subs, symbolic, traces, transformations, type, visProp, visPropCalc
Methods borrowed from other Elements
- Methods borrowed from class JXG.Curve:
- addTransform, allocatePoints, generateTerm, getTransformationSource, hasPoint, interpolationFunctionFromArray, maxX, minX, moveTo, notifyParents, update, updateCurve, updateDataArray, updateRenderer, updateTransform, X, Y, Z
- Methods borrowed from class JXG.GeometryElement:
- _set, addChild, addDescendants, addParents, addParentsFromJCFunctions, addRotation, addTicks, animate, bounds, clearTrace, cloneToBackground, countChildren, createGradient, createLabel, draggable, formatNumberLocale, fullUpdate, generatePolynomial, getAttribute, getAttributes, getLabelAnchor, getName, getParents, getProperty, getSnapSizes, getTextAnchor, getType, handleSnapToGrid, hide, hideElement, noHighlight, normalize, prepareUpdate, remove, removeAllTicks, removeChild, removeDescendants, removeTicks, resolveShortcuts, setArrow, setAttribute, setDash, setDisplayRendNode, setLabel, setLabelText, setName, setParents, setPosition, setPositionDirectly, setProperty, show, showElement, snapToPoints, updateVisibility, useLocale
Events borrowed from other Elements