js飞机大战碰撞检测

看以下图得出结论

(x3 < x2) && (y3 < y2) && (x3 > x1) && (y3 > y1) 如果成立则子弹碰撞到了飞机

原文地址:https://www.cnblogs.com/bingquan1/p/15732151.html