MCPcopy Create free account
hub / github.com/doldecomp/mkdd / stQtMult

Function stQtMult

src/Sato/stMath.cpp:193–203  ·  view source on GitHub ↗

Unused

Source from the content-addressed store, hash-verified

191
192// Unused
193void stQtMult(Quaternion *dst, const Quaternion *a, const Quaternion *b)
194{
195 f32 x = (a->x * b->w) + (a->w * b->x) + (a->y * b->z) - (a->z * b->y);
196 f32 y = (a->y * b->w) + (a->w * b->y) + (a->z * b->x) - (a->x * b->z);
197 f32 z = (a->z * b->w) + (a->w * b->z) + (a->x * b->y) - (a->y * b->x);
198 f32 w = (a->w * b->w) - (a->x * b->x) - (a->y * b->y) - (a->z * b->z);
199 dst->x = x;
200 dst->y = y;
201 dst->z = z;
202 dst->w = w;
203}
204
205void stVec2QtUpdate(Quaternion &p, Quaternion &q, const TVec3f &dir, const TVec3f &vec)
206{

Callers 1

stVec2QtUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected