Class Index | File Index

Classes


Class Glider


Extends JXG.Point.
This element is used to provide a constructor for a glider point.
Defined in: Point.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Glider(z_,x_,y_,GlideObject)
A glider is a point which lives on another geometric element like a line, circle, curve, turtle.
Field Summary
Field Attributes Field Name and Description
 
When used as a glider this member stores the object, where to glide on.
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
Method Summary
Method Attributes Method Name and Description
 
startAnimation(direction, stepCount)
Animate the point.
 
Stop animation.
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
Glider(z_,x_,y_,GlideObject)
A glider is a point which lives on another geometric element like a line, circle, curve, turtle.
// Create a glider with user defined coordinates. If the coordinates are not on
// the circle (like in this case) the point will be projected onto the circle.
var p1 = board.create('point', [2.0, 2.0]);
var c1 = board.create('circle', [p1, 2.0]);
var p2 = board.create('glider', [2.0, 1.5, c1]);

				
				
// Create a glider with default coordinates (1,0,0). Same premises as above.
var p1 = board.create('point', [2.0, 2.0]);
var c1 = board.create('circle', [p1, 2.0]);
var p2 = board.create('glider', [c1]);

				
				
				
				
					
						
Parameters:
{number_number_number_JXG.GeometryElement} z_,x_,y_,GlideObject
Parent elements can be two or three elements of type number and the object the glider lives on. The coordinates are completely optional. If not given the origin is used. If you provide two numbers for coordinates they will be interpreted as affine euclidean coordinates, otherwise they will be interpreted as homogeneous coordinates. In any case the point will be projected on the glide object.
Throws:
{Exception}
If the element cannot be constructed with the given parent objects an exception is thrown.
Field Detail
{JXG.GeometryElement} slideObject
When used as a glider this member stores the object, where to glide on. To set the object to glide on use the method JXG.Point#makeGlider and DO NOT set this property directly as it will break the dependency tree. TODO: Requires renaming to glideObject
Method Detail
startAnimation(direction, stepCount)
Animate the point.
Parameters:
{number} direction
The direction the glider is animated. Can be +1 or -1.
{number} stepCount
The number of steps.
See:
Glider#stopAnimation

stopAnimation()
Stop animation.
See:
Glider#startAnimation

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Feb 26 2013 18:47:40 GMT+0100 (CET)