| # | Line 82 | Line 82 | namespace OpenMD { | |
|---|---|---|
| 82 | */ | |
| 83 | bool shapedLatticeRod::isInterior(Vector3d point){ | |
| 84 | ||
| 85 | < | RealType x, y, z, distance, delta_z; |
| 85 | > | RealType x, y, z, distance; |
| 86 | ||
| 87 | distance = 0; | |
| 88 | ||
| # | Line 91 | Line 91 | namespace OpenMD { | |
| 91 | z = point[2]; | |
| 92 | ||
| 93 | if ( abs(z) >= rodLength_/2.0 ) { | |
| 94 | < | delta_z = abs(z) - rodLength_/2.0; |
| 94 | > | RealType delta_z = abs(z) - rodLength_/2.0; |
| 95 | distance = sqrt((x*x) + (y*y) + (delta_z*delta_z)); | |
| 96 | } else { | |
| 97 | distance = sqrt((x*x) + (y*y)); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |