| 151 | } |
| 152 | |
| 153 | Vector3* TriVectorExponentialDecayInteger( |
| 154 | Vector3* pos, |
| 155 | const Vector3* x, |
| 156 | const Vector3* v, |
| 157 | const Vector3* a, |
| 158 | const float m, |
| 159 | const float k, |
| 160 | float t ) |
| 161 | { |
| 162 | *pos = *x + *a * t / k + m * ( *v * k - *a ) / ( k * k ) * ( 1.0f - powf( TRI_E, -k * t / m ) ); |
| 163 | return pos; |
| 164 | } |
| 165 | |
| 166 | Vector3* TriVectorExponentialDecay( |
| 167 | Vector3* vel, |
no outgoing calls
no test coverage detected