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

Function VecFromAngle

src/SB/Game/zEntTeleportBox.cpp:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28static F32 sTeleportCamPitch;
29
30static void VecFromAngle(float a, xVec3* v)
31{
32 xMat3x3 mat;
33
34 xMat3x3Identity(&mat);
35 xMat3x3Euler(&mat, DEG2RAD(a), 0.0f, 0.0f);
36 xVec3Init(v, 0.0f, 0.0f, 1.0f);
37 xMat3x3LMulVec(v, &mat, v);
38}
39
40U32 OpenCheck(xAnimTransition*, xAnimSingle*, void* object)
41{

Callers

nothing calls this directly

Calls 4

xMat3x3IdentityFunction · 0.85
xMat3x3EulerFunction · 0.85
xVec3InitFunction · 0.85
xMat3x3LMulVecFunction · 0.50

Tested by

no test coverage detected