开发者

Built-in rectangle intersection function?

开发者 https://www.devze.com 2023-02-20 17:54 出处:网络
Someone once told me VB.net had some built-in function to che开发者_运维技巧ck if two rectangles intersected. But I cannot find it... can someone help me?EDIT:

Someone once told me VB.net had some built-in function to che开发者_运维技巧ck if two rectangles intersected. But I cannot find it... can someone help me?


EDIT:

you can use Rectangle's IntersectsWith()

r1.IntersectWith(r2)
0

精彩评论

暂无评论...
验证码 换一张
取 消