| # | Line 94 | Line 94 | namespace OpenMD { | |
|---|---|---|
| 94 | z_int = z/2.04; | |
| 95 | ||
| 96 | //Rotate by 45 degrees around z-axis so length of rod lies along y axis | |
| 97 | < | new_x = (sqrt(2)/2)*(x - y); |
| 98 | < | new_y = (sqrt(2)/2)*(x + y); |
| 97 | > | new_x = (sqrt(2.0)/2)*(x - y); |
| 98 | > | new_y = (sqrt(2.0)/2)*(x + y); |
| 99 | ||
| 100 | left_newx = (z - 1.44)*(0.577350269/0.816496581); | |
| 101 | right_newx = (z + 1.44)*(-0.577350269/0.816496581); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |