Class Index | File Index

Classes


Class Circle


Extends JXG.Circle.
This element is used to provide a constructor for a circle.
Defined in: Circle.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Circle(center,radius)
A circle consists of all points with a given distance from one point.
Fields borrowed from class JXG.Circle:
center, circle, line, method, point2, radius
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.Circle:
addTransform, getRadius, Radius, setPositionDirectly, setRadius, update, X, Y, Z
Methods borrowed from class JXG.GeometryElement:
addChild, addRotation, animate, bounds, clearTrace, cloneToBackground, createLabel, getAttributes, getLabelAnchor, getName, getParents, getProperty, getTextAnchor, getType, hasPoint, 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
Circle(center,radius)
A circle consists of all points with a given distance from one point. This point is called center, the distance is called radius. A circle can be constructed by providing a center and a point on the circle or a center and a radius (given as a number, function, line, or circle).
// Create a circle providing two points
var p1 = board.create('point', [2.0, 2.0]);
var p2 = board.create('point', [2.0, 0.0]);
var c1 = board.create('circle', [p1, p2]);

// Create another circle using the above circle
var p3 = board.create('point', [3.0, 2.0]);
var c2 = board.create('circle', [p3, c1]);

				
				
				
				
					
						
Parameters:
{JXG.Point_number|JXG.Point|JXG.Line|JXG.Circle} center,radius
The center must be given as a JXG.Point, but the radius can be given as a number (which will create a circle with a fixed radius), another JXG.Point, a JXG.Line (the distance of start and end point of the line will determine the radius), or another JXG.Circle.
Throws:
{Exception}
If the element cannot be constructed with the given parent objects an exception is thrown.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu May 30 2013 23:22:11 GMT+0200 (CEST)