Is there a method that checks if a point crosses a rectangle?

So, Apple includes a method CGRectIntersectsRectthat checks if two rectangles intersect each other, but do they have a method that I can use if CGPoint crosses CGRect? Or do I just need to implement this?

+3
source share
1 answer

There is one: CGRectContainsPoint.

+8
source

Source: https://habr.com/ru/post/1755433/


All Articles