Clean up some variable names.
Simplify winding algorithm by reusing orientation check.