JavaScript must be enabled in order for you to use JSXGraph and JSXGraph reference. However, it seems JavaScript is either disabled or not supported by your browser.

Class Index | File Index

Elements
Classes

Class 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.

Class Summary
Constructor Attributes Constructor Name and Description
 
Conic(a,b,c,d,e, a_00,a_11,a_22,a_01,a_02,a_12)
Fields borrowed from class JXG.Curve:
dataX, dataY, numberPoints, qdt, ticks
Fields borrowed from class JXG.GeometryElement:
_org_type, _pos, ancestors, baseElement, board, childElements, dash, descendants, draft, dragToTopOfLayer, dump, elementClass, elType, fillColor, fillOpacity, fixed, frozen, gradient, gradientAngle, gradientCX, gradientCY, gradientEndOffset, gradientFR, gradientFX, gradientFY, gradientR, gradientSecondColor, gradientSecondOpacity, gradientStartOffset, hasLabel, highlight, highlighted, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, id, inherits, isDraggable, isReal, lastDragTime, methodMap, mouseover, name, needsRegularUpdate, needsUpdate, notExistingParents, numTraces, parents, precision, quadraticform, rendNode, rotatable, scalable, shadow, snapToGrid, stdform, strokeColor, strokeOpacity, strokeWidth, subs, symbolic, tabindex, trace, traceAttributes, traces, transformations, transitionDuration, transitionProperties, type, visible, visProp, visPropCalc, withLabel
Field Summary
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.
Fields borrowed from class JXG.Curve:
dataX, dataY, numberPoints, qdt, ticks
Fields borrowed from class JXG.GeometryElement:
_org_type, _pos, ancestors, baseElement, board, childElements, dash, descendants, draft, dragToTopOfLayer, dump, elementClass, elType, fillColor, fillOpacity, fixed, frozen, gradient, gradientAngle, gradientCX, gradientCY, gradientEndOffset, gradientFR, gradientFX, gradientFY, gradientR, gradientSecondColor, gradientSecondOpacity, gradientStartOffset, hasLabel, highlight, highlighted, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, id, inherits, isDraggable, isReal, lastDragTime, methodMap, mouseover, name, needsRegularUpdate, needsUpdate, notExistingParents, numTraces, parents, precision, quadraticform, rendNode, rotatable, scalable, shadow, snapToGrid, stdform, strokeColor, strokeOpacity, strokeWidth, subs, symbolic, tabindex, trace, traceAttributes, traces, transformations, transitionDuration, transitionProperties, type, visible, visProp, visPropCalc, withLabel
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, fullUpdate, generatePolynomial, getAttribute, getAttributes, getLabelAnchor, getName, getParents, getProperty, getSnapSizes, getTextAnchor, getType, handleSnapToGrid, hide, hideElement, labelColor, noHighlight, normalize, prepareUpdate, remove, removeAllTicks, removeChild, removeDescendants, removeTicks, resolveShortcuts, setArrow, setAttribute, setDash, setDisplayRendNode, setLabel, setLabelText, setName, setParents, setPosition, setPositionDirectly, setProperty, show, showElement, snapToPoints, updateVisibility
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
Class Detail
Conic(a,b,c,d,e, a_00,a_11,a_22,a_01,a_02,a_12)
Parameters:
{JXG.Point|Array_JXG.Point|Array_JXG.Point|Array_JXG.Point|Array_JXG.Point|Array} a,b,c,d,e
Parent elements are five points.


{Number_Number_Number_Number_Number_Number} a_00,a_11,a_22,a_01,a_02,a_12
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]);


				
                
Field Detail
{Point} center
Attributes for center point.
Defined in: options.js.

{Point} foci
Attributes for foci points.
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.

{Point} point
Attributes for five points defining the conic, if some of them are given as coordinates.
Defined in: options.js.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Feb 23 2023 14:49:32 GMT-0000 (UTC)