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

Function xQuatGetAngle

src/SB/Core/x/xCamera.cpp:1704–1718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1702}
1703
1704F32 xQuatGetAngle(const xQuat* q)
1705{
1706 if (q->s > 0.99998999f)
1707 {
1708 return 0.0f;
1709 }
1710 else if (q->s < -0.99998999f)
1711 {
1712 return 6.2831855f;
1713 }
1714 else
1715 {
1716 return 2.0f * xacos(q->s);
1717 }
1718}
1719
1720U32 xEntIsVisible(const xEnt* ent)
1721{

Callers 1

xCameraLookFunction · 0.85

Calls 1

xacosFunction · 0.85

Tested by

no test coverage detected