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

Function TriVectorExponentialDecay

trinity/TriMath.cpp:166–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166Vector3* 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
178Vector3* TriVectorExponentialDecayInteger(
179 Vector3* pos,

Callers 2

GetValueDotAtMethod · 0.85
SortMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected