# Difference between revisions of "Dual lattice"

From JSXGraph Wiki

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

(5 intermediate revisions by the same user not shown) | |||

Line 19: | Line 19: | ||

var num = b1.X() * b2.Y() - b2.X() * b1.Y(); | var num = b1.X() * b2.Y() - b2.X() * b1.Y(); | ||

return [b2.Y() / num, -b2.X() / num]; | return [b2.Y() / num, -b2.X() / num]; | ||

− | }], {strokeColor: ' | + | }], {strokeColor: 'black', name:"1'", withLabel:true, label:{position:'rt'}}); |

w2 = brd.create('arrow', [[0,0], function() { | w2 = brd.create('arrow', [[0,0], function() { | ||

var num = b1.X() * b2.Y() - b2.X() * b1.Y(); | var num = b1.X() * b2.Y() - b2.X() * b1.Y(); | ||

return [-b1.Y() / num, b1.X() / num]; | return [-b1.Y() / num, b1.X() / num]; | ||

− | }], {strokeColor: ' | + | }], {strokeColor: 'red', name:"2'", withLabel:true, label:{position:'rt'}}); |