BlendQuaternionDefault
function · d3dx
- Address
0x74d11a· 229 bytes, up to0x74d1fe- Meaning
- Blends two quaternions by a weight; the default routine
- Confidence
- verified, proof one
- Finding
- animation/tracks#quaternion-blend
- Test
animation::m2_animate_difftest,animation::m2_track_sample_quat_difftest,animation::sample_quat_slerp_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 0
None by a direct call or jump.
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.