MCPcopy Create free account
hub / github.com/carbonengine/trinity / TriVectorExponentialDecayInteger

Function TriVectorExponentialDecayInteger

trinity/TriMath.cpp:153–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153Vector3* 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
166Vector3* TriVectorExponentialDecay(
167 Vector3* vel,

Callers 2

GetValueAtMethod · 0.85
SortMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected