Rename variables/functions to reflect usage

Previous versions of this code incremented from 0. Decrementing from 180
felt more natural so the code was reversed but the naming was not.

Signed-off-by: Yan-Fa Li <yanfali@gmail.com>