Correct boolean condition in getWinding.

Also clarify the condition using braces
Revert "Correct boolean condition in getWinding."

This reverts commit fcc2e93dafc105db8f5cbc1d97763bde037a0f87.
Handle overlapping intercepts in getIntersection,

In a more robust way. Restricting ranges in parameter is not a nice way
to handle endpoint intersections.