| 64 | public: |
| 65 | |
| 66 | Particle(Vec3 pos, double time_step) : |
| 67 | movable(true), |
| 68 | mass(1), |
| 69 | acceleration(Vec3(0, 0, 0)), |
| 70 | accumulated_normal(Vec3(0, 0, 0)), |
| 71 | time_step2(time_step), |
| 72 | pos(pos), |
| 73 | old_pos(pos) { |
| 74 | isVisited = false; |
| 75 | neibor_count = 0; |
| 76 | pos_x = 0; |
| 77 | pos_y = 0; |
| 78 | c_pos = 0; |
| 79 | nearestPointHeight = MIN_INF; |
| 80 | tmpDist = MAX_INF; |
| 81 | } |
| 82 | |
| 83 | Particle() : |
| 84 | movable(true), |