Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道发生这种情况或应该发生这种情况的情况,粗略地看一下文档是没有帮助的。
这只会发生在矩形不相交的情况下。例如
new Rectangle(0, 0, 10, 10).intersection(new Rectangle(100, 100, 10, 10))
会有负的宽度和高度。