开发者

Is there a method that will check if a point intersects a rectangle?

So, Apple includes a CGRectIntersectsRect 开发者_运维知识库method which checks if two rectangles are intersecting each other, but do they have a method that I can use the checks if a CGPoint intersects a CGRect? Or do I just have to implement that myself?


There is one: CGRectContainsPoint.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜