MCPcopy Create free account
hub / github.com/android/ndk-samples / GetSectionCenterY

Function GetSectionCenterY

endless-tunnel/app/src/main/cpp/play_scene.cpp:408–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408static float GetSectionCenterY(int i) {
409 return (float)i * TUNNEL_SECTION_LENGTH;
410}
411
412static float GetSectionEndY(int i) {
413 return GetSectionCenterY(i) + 0.5f * TUNNEL_SECTION_LENGTH;

Callers 4

GetSectionEndYFunction · 0.85
RenderTunnelMethod · 0.85
RenderObstaclesMethod · 0.85
DetectCollisionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected