# Difference between revisions of "Circle with ticks"

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 5: | Line 5: | ||

var q = brd.create('point', [3,3]); | var q = brd.create('point', [3,3]); | ||

var circ = brd.create('circle', [p, q]); | var circ = brd.create('circle', [p, q]); | ||

+ | |||

+ | var ticks = brd.create('curve', [[0], [0]], {strokeWidth: 1, strokeColor: 'blue'}); | ||

+ | ticks.updateDataArray = function() { | ||

+ | var cx = circ.center.X(), | ||

+ | cy = circ.center.Y(), | ||

+ | r = circle.Radius(); | ||

+ | }; | ||

+ | |||

</jsxgraph> | </jsxgraph> | ||