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

Function vec2vecMat

src/SB/Game/zLasso.cpp:502–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502static void vec2vecMat(xMat4x3* m, xVec3* v1, xVec3* v2)
503{
504 xVec3 v3;
505 xVec3Cross(&v3, v1, v2);
506 F32 f1 = xasin(xVec3Normalize(&v3, &v3));
507 xMat4x3Rot(m, &v3, f1);
508}
509
510static void bakeMorphAnim(RpGeometry* geom, void* anim)
511{

Callers

nothing calls this directly

Calls 4

xVec3CrossFunction · 0.85
xasinFunction · 0.85
xMat4x3RotFunction · 0.70
xVec3NormalizeFunction · 0.50

Tested by

no test coverage detected