| 164 | |
| 165 | template <typename itr, typename T> |
| 166 | inline int |
| 167 | find_struct_handle_position(itr begin, itr end, const T& value) |
| 168 | { |
| 169 | int position = 0; |
| 170 | while (begin != end) |
| 171 | { |
| 172 | if (*begin++ == value) |
| 173 | return position; |
| 174 | else |
| 175 | ++position; |
| 176 | } |
| 177 | |
| 178 | TBOX_ASSERT(false); |
| 179 | return -1; |
| 180 | } |
| 181 | |
| 182 | #if (NDIM == 3) |
| 183 | // Routine to solve 3X3 equation to get rigid body rotational velocity. |
no outgoing calls
no test coverage detected