if a point is inside a rectangle