MCPcopy Create free account
hub / github.com/assaultcube/AC / WrapXAngle

Function WrapXAngle

source/src/bot/bot_util.cpp:153–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151// Function code by PMB - End
152
153float WrapXAngle(float angle)
154{
155 if (angle > 90) angle = 90;
156 else if (angle < -90) angle = -90;
157
158 return angle;
159}
160
161float WrapYZAngle(float angle)
162{

Callers 3

AimToIdealMethod · 0.85
IsVisibleMethod · 0.85
testvisibleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected