test for triangle circle intersection