MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Direction

Class Direction

engine/Poseidon/Input/InputProcessingSdl.cpp:373–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371 d = sqrtf(1.0f + x2 / y2);
372 else if (x2 > 0.0f)
373 d = sqrtf(1.0f + y2 / x2);
374 x = fmaxf(-1.0f, fminf(1.0f, x * d));
375 y = fmaxf(-1.0f, fminf(1.0f, y * d));
376}
377
378static inline float saturatef(float v, float lo, float hi)
379{
380 return v < lo ? lo : v > hi ? hi : v;

Callers 15

OrientationSurfaceMethod · 0.85
GetCameraDirectionMethod · 0.85
HideFromMethod · 0.85
TrackTargetsMethod · 0.85
AnimateMethod · 0.85
AdjustMethod · 0.85
ResetTargetsMethod · 0.85
SimulateMethod · 0.85
GetCameraDirectionMethod · 0.85
ThrowGrenadeActionMethod · 0.85
LandSlopeMethod · 0.85
AimHeadAIMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected