Class Ellipse
Extends
JXG.Curve.
This element is used to provide a constructor for an ellipse. An ellipse is given by two points (the foci) and a third point on the the ellipse or
the length of the major axis.
Defined in: Conic.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Ellipse(point1,point2,point3, point1,point2,number)
|
- 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
Ellipse(point1,point2,point3, point1,point2,number)
// Create an Ellipse by three points var A = board.create('point', [-1,4]); var B = board.create('point', [-1,-4]); var C = board.create('point', [1,1]); var el = board.create('ellipse',[A,B,C]);
- Parameters:
- {JXG.Point|array_JXG.Point|array_JXG.Point|array} point1,point2,point3
- Parent elements can be three elements either of type JXG.Point or array of numbers describing the coordinates of a point. In the latter case the point will be constructed automatically as a fixed invisible point.
- {JXG.Point|array_JXG.Point|array_number|function} point1,point2,number
- Parent elements can be two elements either of type JXG.Point or array of numbers describing the coordinates of a point. The third parameter is a number/function which defines the length of the major axis Optional parameters four and five 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.