MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetRadius

Method GetRadius

TombEngine/Game/Hud/TargetHighlighter.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 }
31
32 float CrosshairData::GetRadius() const
33 {
34 // Get screen aspect ratio.
35 auto screenRes = g_Renderer.GetScreenResolution().ToVector2();
36 float screenResAspect = screenRes.x / screenRes.y;
37
38 return ((((DISPLAY_SPACE_RES.x * Scale) / 2) * (RadiusScale * PulseScale)) * screenResAspect);
39 }
40
41 Vector2 CrosshairData::GetPositionOffset(short orientOffset) const
42 {

Callers

nothing calls this directly

Calls 2

GetScreenResolutionMethod · 0.80
ToVector2Method · 0.45

Tested by

no test coverage detected