对于二维几何相关的操作可以参考:java.awt.geom // 相交判断 java.awt.geom.Line2D.linesIntersect(x1, y1, x2, y2, x3, y3, x4, y4);