move isInside into Rect class

little change matters