Is there a way to verify if a
CGRectContainsPoint() in the documentation.
bool CGRectContainsPoint(CGRect rect, CGPoint point);
rectThe rectangle to examine.
pointThe point to examine. Return Value true if the rectangle is not null or empty and the point is located within the rectangle; otherwise, false.
A point is considered inside the rectangle if its coordinates lie inside the rectangle or on the minimum X or minimum Y edge.