Class Index | File Index

Classes


Class Point


Extends JXG.Point.
This element is used to provide a constructor for a general point. A free point is created if the given parent elements are all numbers and the property fixed is not set or set to false. If one or more parent elements is not a number but a string containing a GEONExT constraint or a function the point will be considered as constrained). That means that the user won't be able to change the point's position directly.
Defined in: Point.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Point(z_,x,y, Point,Transformation)
Fields borrowed from class JXG.Point:
face, fixed, showInfobox, size, style
Fields borrowed from class JXG.GeometryElement:
ancestors, board, childElements, dash, descendants, draft, fillColor, fillOpacity, 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.Point:
addConstraint, addTransform, cloneToBackground, Dist, makeGlider, moveAlong, moveTo, normalizeFace, remove, setPosition, setPositionByTransform, setPositionDirectly, update, updateTransform, visit, X, Y, Z
Methods borrowed from class JXG.GeometryElement:
addChild, addLabelToElement, animate, clearTrace, hideElement, highlight, labelColor, noHighlight, setArrow, setProperty, showElement
Class Detail
Point(z_,x,y, Point,Transformation)
// Create a free point using affine euclidean coordinates 
var p1 = board.create('point', [3.5, 2.0]);

				
				
// Create a constrained point using anonymous function 
var p2 = board.create('point', [3.5, function () { return p1.X(); }]);

				
				
// Create a point using transformations 
var trans = board.create('transform', [2, 0.5], {type:'scale'});
var p3 = board.create('point', [p2, trans]);

				
				
				
				
					
						
Parameters:
{number|string|function_number|string|function_number|string|function} z_,x,y
Parent elements can be two or three elements of type number, a string containing a GEONExT constraint, or a function which takes no parameter and returns a number. Every parent element determines one coordinate. If a coordinate is given by a number, the number determines the initial position of a free point. If given by a string or a function that coordinate will be constrained that means the user won't be able to change the point's position directly by mouse because it will be calculated automatically depending on the string or the function's return value. If two parent elements are given the coordinates will be interpreted as 2D affine euclidean coordinates, if three such parent elements are given they will be interpreted as homogeneous coordinates.
{JXG.Point_JXG.Transformation} Point,Transformation
A point can also be created providing a transformation. The resulting point is a clone of the base point transformed by the given Transformation. {@see JXG.Transformation}.
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 Sat Mar 22 2014 12:02:46 GMT-0000 (UTC)