fix mistake

- missing floating point math
find failing test
fix mistake

- sort clockwise fixed
- angle between lines fixed