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(midpoint,radius)
A circle consists of all points with a given distance from one point.
Fields borrowed from class JXG.Circle:
circle, line, method, midpoint, point2, radius
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.Circle:
cloneToBackground, getRadius, Radius, update, X, Y
Methods borrowed from class JXG.GeometryElement:
addChild, addLabelToElement, animate, clearTrace, hideElement, highlight, labelColor, noHighlight, remove, setArrow, setProperty, showElement
Class Detail
Circle(midpoint,radius)
A circle consists of all points with a given distance from one point. This point is called midpoint, the distance is called radius. A circle can be constructed by providing a midpoint and a point on the circle or a midpoint 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} midpoint,radius
The midpoint 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 Tue Oct 25 2011 00:43:17 GMT-0000 (UTC)