Curly braces: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 29: | Line 29: | ||
mid = (A.X()+B.X())*0.5; | mid = (A.X()+B.X())*0.5; | ||
d[ | d[1] *= height/dl; | ||
return mid-d[1] ; | return mid-d[1] ; | ||
}, | }, | ||
Line 37: | Line 37: | ||
mid = (A.Y()+B.Y())*0.5; | mid = (A.Y()+B.Y())*0.5; | ||
d[ | d[0] *= height/dl; | ||
return mid+d[0]; | return mid+d[0]; | ||
}, | }, |