(x,y)
| 473 | canvasHeight/2 + unitRadius * pole2Imag); |
| 474 | |
| 475 | function drawCrossAtPoint(x,y) { |
| 476 | var crossRadius = 3; |
| 477 | ctx.lineWidth = 1; |
| 478 | ctx.beginPath(); |
| 479 | ctx.moveTo(x - crossRadius, y - crossRadius); |
| 480 | ctx.lineTo(x + crossRadius, y + crossRadius); |
| 481 | ctx.stroke(); |
| 482 | ctx.beginPath(); |
| 483 | ctx.moveTo(x - crossRadius, y + crossRadius); |
| 484 | ctx.lineTo(x + crossRadius, y - crossRadius); |
| 485 | ctx.stroke(); |
| 486 | } |
| 487 | } |
| 488 | |
| 489 | }; |