Pergunta de entrevista da empresa Xpeng Motors

How to compute iou for two triangle objects