开发者

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

开发者 https://www.devze.com 2023-01-08 04:35 出处:网络
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 intersect

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

精彩评论

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