This effectively de-duplicates triangle intersection logic implemented for both regular triangle and SSS triangle.