(x, y, cosA, sinA)
| 1422 | } |
| 1423 | |
| 1424 | function rotate(x, y, cosA, sinA) { |
| 1425 | // (x + j * y) * (cosA + j * sinA) = x * cosA - y * sinA + j * (x * sinA + y * cosA) |
| 1426 | y = -y; |
| 1427 | sinA = -sinA; |
| 1428 | var _ref = [x * cosA - y * sinA, x * sinA + y * cosA]; |
| 1429 | x = _ref[0]; |
| 1430 | y = _ref[1]; |
| 1431 | y = -y; |
| 1432 | return [x, y]; |
| 1433 | } |
| 1434 | |
| 1435 | function drawEdge(x1, y1, x2, y2, attributes) { |
| 1436 | var options = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {}; |