| 164 | } |
| 165 | |
| 166 | Vector3* TriVectorExponentialDecay( |
| 167 | Vector3* vel, |
| 168 | const Vector3* v, |
| 169 | const Vector3* a, |
| 170 | const float m, |
| 171 | const float k, |
| 172 | const float t ) |
| 173 | { |
| 174 | *vel = *a / k + ( *v - *a / k ) * ( powf( TRI_E, -k * t / m ) ); |
| 175 | return vel; |
| 176 | } |
| 177 | |
| 178 | Vector3* TriVectorExponentialDecayInteger( |
| 179 | Vector3* pos, |
no outgoing calls
no test coverage detected