scoreboard players operation $sqrt distance += $sqrt pos_x
scoreboard players operation $sqrt distance /= $2 pos_x
scoreboard players operation $sqrt pos_x = @s distance
scoreboard players operation $sqrt pos_x /= $sqrt distance

execute if score $sqrt distance > $sqrt pos_x run function f:game/compass/sqrt