detect Zone
fun detectZone(x: Float, y: Float, screenWidth: Float, screenHeight: Float, edgeThreshPx: Float): RadialMenuMath.MenuZone(source)
Detects which screen zone the touch point falls in.
Corners are checked first (both x AND y within edgeThreshPx of the respective edges). Anything else returns MenuZone.CENTER.
Return
The MenuZone the touch falls in.
Since
1.0.3
Parameters
x
Touch X position in pixels.
y
Touch Y position in pixels.
screen Width
Screen width in pixels.
screen Height
Screen height in pixels.
edge Thresh Px
Pixel threshold for corner detection.