Using the atan2() method, this sample calculates the angle of each eye in relation to the current position of the cursor. As the cursor moves, the direction of each eye changes to follow the cursor's current location.