判断两条线段是否相交

之前一篇文章里写了一种差乘判断方法:http://www.cnblogs.com/hont/p/6105997.html 虽然用3D空间的差乘,但是只适用于2D空间   bool IsIntersection(Vector3 a, Vector3 b, Vector3 c, Vector3 d) { var crossA = Mathf.Sign(Vector3.Cross(d - c,
相关文章
相关标签/搜索