MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xQuatMul

Function xQuatMul

src/SB/Core/x/xMath3.cpp:723–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723void xQuatMul(xQuat* o, const xQuat* a, const xQuat* b)
724
725{
726 o->v.z = (a->v.x * b->v.y + a->v.z * b->s + a->s * b->v.z) - a->v.y * b->v.x;
727 o->v.y = (a->v.z * b->v.x + a->v.y * b->s + a->s * b->v.y) - a->v.x * b->v.z;
728 o->v.x = (a->v.y * b->v.z + a->v.x * b->s + a->s * b->v.x) - a->v.z * b->v.y;
729 o->s = ((a->s * b->s - a->v.x * b->v.x) - a->v.y * b->v.y) - a->v.z * b->v.z;
730 xQuatNormalize(o, o);
731 return;
732}
733
734void xQuatDiff(xQuat* o, const xQuat* a, const xQuat* b)
735{

Callers 3

_xCameraUpdateFunction · 0.85
xQuatDiffFunction · 0.85
xAnimPlayEvalFunction · 0.85

Calls 1

xQuatNormalizeFunction · 0.70

Tested by

no test coverage detected