大家看一下我这个相交检测的算法是否可行 = =
来源:10-6 饼图文本重排(重排)
kevinZee
2017-04-05
var intersect_x=shadowA_x[1]>shadowB_x[0] && shadowA_x[0]<shadowB_x[1];
var intersect_y=shadowA_y[1]>shadowB_y[0] && shadowA_y[0]<shadowB_y[1];;
return intersect_y&&intersect_x;
写回答
1回答
-
Ryan幕
2017-04-27
shadowA_x[1] > shadowB_x[0] && shadowA_x[1] < shadowB_x[1]
00
相似问题