Checks if the given shape bounds are inside the given rectangle
the shape bounds to check
the rectangle size
position offset
Optional
the shape direction
Checks if the given shape bounds are inside the given rectangle