| 33 | } |
| 34 | |
| 35 | struct Spring |
| 36 | { |
| 37 | Spring() |
| 38 | : |
| 39 | particle0(0), |
| 40 | particle1(0), |
| 41 | constant((Real)0), |
| 42 | length((Real)0) |
| 43 | { |
| 44 | } |
| 45 | |
| 46 | int32_t particle0, particle1; |
| 47 | Real constant, length; |
| 48 | }; |
| 49 | |
| 50 | // Member access. |
| 51 | inline int32_t GetNumSprings() const |