Explanation:
 
~v1 is the distance that the enemy is in front of Torque. ~v2 is the distance that the enemyis to the side of Torque. If both of these are between -1 and +1, then the enemy must be on Torque's perimeter, so he jumps to his discharge-energy routine.