MCPcopy Create free account
hub / github.com/defold/defold / SampleVec3

Function SampleVec3

engine/rig/src/rig.cpp:395–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393 }
394
395 static Vector3 SampleVec3(uint32_t sample, float frac, float* data)
396 {
397 uint32_t i0 = sample*3;
398 uint32_t i1 = i0+3;
399 return lerp(frac, Vector3(data[i0+0], data[i0+1], data[i0+2]), Vector3(data[i1+0], data[i1+1], data[i1+2]));
400 }
401
402 static Quat SampleQuat(uint32_t sample, float frac, float* data)
403 {

Callers 1

ApplyAnimationFunction · 0.85

Calls 2

lerpFunction · 0.50
Vector3Class · 0.50

Tested by

no test coverage detected