Mutually dependent line and gliders: Difference between revisions
From JSXGraph Wiki
| A WASSERMANN (talk | contribs) No edit summary | A WASSERMANN (talk | contribs) No edit summary | ||
| Line 22: | Line 22: | ||
| gl2.on('drag', function() { | gl2.on('drag', function() { | ||
|      offset = gl2.Y() - gl1.Y(); |      offset = gl2.Y() - gl1.Y(); | ||
|      var v = JXG.Math |      var v = JXG.Math.crossProduct(gl1.coords.usrCoords,gl2.coords.usrCoords); | ||
|      }); |      }); | ||
| </jsxgraph> | </jsxgraph> | ||
