BlendQuaternionDispatch
function · d3dx
- Address
0x74d114· 6 bytes, up to0x74d119- Meaning
- Jumps through a pointer to the quaternion blend routine
- Confidence
- verified, proof one
- Finding
- animation/tracks#quaternion-blend
- Test
animation::m2_animate_difftest,animation::m2_track_sample_quat_difftest
Finding: Quaternion blend in animation: tracks
0x74d11a(out, A, B, t) blends two quaternions. With d = ((Ax·Bx + Az·Bz) + Ay·By) + Aw·Bw, s = −1 when
d < 0 or unordered and else 1, and c = s·d: when 1 − c ≤ 2^-23 or is not a number, cA = 1 − t and
cB = t·s. Otherwise θ = f32(atan2(sqrt(1 − c²), f32(c))), inv = f32(1 / sqrt(1 − c²)),
cA = sin(θ · (1 − t)) · inv and cB = sin(θ · t) · inv · s. The result is f32(cA·A_i + cB·B_i) for each
component, the sum at 53 bits.
The derivation is in the doc.
Callers 3
- M2SampleRotation models
- 0x74d231 d3dx
- 0x74d2da d3dx
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.