Difference between revisions of "Dual lattice"

From JSXGraph Wiki
Jump to: navigation, search
Line 8: Line 8:
  
 
w1 = brd.create('arrow', [[0,0], function() {
 
w1 = brd.create('arrow', [[0,0], function() {
     return [-1,-1];
+
     var num = b1.X() * b2.Y() - b2.X() * b1.Y();
  
}], {});
+
    return [b2.Y() / num,  -b2.X() / num];
 +
 
 +
}], {strokeColor: 'red'});
  
  

Revision as of 16:06, 16 June 2016