摘要: 注意:这边的矩形不带旋转 两圆是否相交 //两圆是否相交 public static bool IsTwoCircleIntersect(Vector2 center1, float r1, Vector2 center2, float r2) { var r = r1 + r2; var resu 阅读全文
posted @ 2023-11-02 23:31 yanghui01 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 点是否在矩形内 //点是否在矩形内 public static bool IsPointInRect(Vector2 p, Vector2 min, Vector2 max) { if (p.x < min.x || p.x > max.x) return false; if (p.y < min. 阅读全文
posted @ 2023-11-02 23:04 yanghui01 阅读(4) 评论(0) 推荐(0) 编辑