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

Function xMat3x3Tolocal

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

Source from the content-addressed store, hash-verified

519}
520
521void xMat3x3Tolocal(xVec3* o, const xMat3x3* m, const xVec3* v)
522{
523 F32 sumRt = (m->right.x * m->right.x) + (m->right.y * m->right.y) + (m->right.z * m->right.z);
524 F32 sumUp = (m->up.x * m->up.x) + (m->up.y * m->up.y) + (m->up.z * m->up.z);
525 F32 sumAt = (m->at.x * m->at.x) + (m->at.y * m->at.y) + (m->at.z * m->at.z);
526 xMat3x3LMulVec(o, m, v);
527 o->x /= sumRt;
528 o->y /= sumUp;
529 o->z /= sumAt;
530}
531
532void xMat4x3Rot(xMat4x3* m, const xVec3* a, F32 t, const xVec3* p)
533{

Callers 5

zPlatform_PaddleCollideFunction · 0.85
SweptSphereHitsCameraEntFunction · 0.85
SweptSphereHitsEntCBFunction · 0.85
xBoundOBBIsectRayFunction · 0.85
xMat4x3TolocalFunction · 0.85

Calls 1

xMat3x3LMulVecFunction · 0.70

Tested by

no test coverage detected