How to know thumbstick rotation direction?

Is there a way to know which direction(clockwise/counterclockwise) is a controller thumbstick being rotated?