| 14 | } |
| 15 | |
| 16 | float SDisableVector::Update(const Fvector& new_vector) |
| 17 | { |
| 18 | Fvector dif; |
| 19 | dif.sub(new_vector, previous); |
| 20 | previous.set(new_vector); |
| 21 | sum.add(dif); |
| 22 | return dif.magnitude(); |
| 23 | } |
| 24 | |
| 25 | float SDisableVector::UpdatePrevious(const Fvector& new_vector) |
| 26 | { |
no test coverage detected