一维坐标区间位置的7种关系

//区间位置的7种状况A[a,b] B[c,d] if (b <= c) //不相交 else if (a > c && b < d) { //B包含A } else if (c > a && d < b) { //A包含B
相关文章
相关标签/搜索