thyrgle
thyrgle

Reputation:

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?

Upvotes: 3

Views: 1654

Answers (1)

zneak
zneak

Reputation: 138041

There is one: CGRectContainsPoint.

Upvotes: 8

Related Questions