Check if a given rect contains or intersects with a given point.
the rectangle to be checked.
the x point cord to be checked.
the y point cord to be checked.
returns true if the given rect contains or intersects with the given point.
Check if a given rect contains or intersects with a given point.