Triangle orientation method
Rectangle & segment intersection detection test