public final function contains( Rectangle $rect ) : bool
   {

      return (
         (
            (
               (
                  $this->point->x <= $rect->point->x
               )
               && (
                  ( $rect->point->x + $rect->size->width ) <= ( $this->point->x + $this->size->width )
               )
            )
            &&
            (
               $this->point->y <= $rect->point->y
            )
         )
         &&
         (
            ( $rect->point->y + $rect->size->height ) <= ( $this->point->y + $this->size->height )
         )
      );

   }
public final function contains( Rectangle $rect ) : bool
   {

      return (
         (
            (
               (
                  $this->point->x <= $rect->point->x
               )
               && (
                  ( $rect->point->x + $rect->size->width ) <= ( $this->point->x + $this->size->width )
               )
            )
            &&
            (
               $this->point->y <= $rect->point->y
            )
         )
         &&
         (
            ( $rect->point->y + $rect->size->height ) <= ( $this->point->y + $this->size->height )
         )
      );

   }
public final function contains ( Rectangle $ rect ) : bool { return ( ( ( ( $ this -> point -> x <= $ rect -> point -> x ) && ( ( $ rect -> point -> x + $ rect -> size -> width ) <= ( $ this -> point -> x + $ this -> size -> width ) ) ) && ( $ this -> point -> y <= $ rect -> point -> y ) ) && ( ( $ rect -> point -> y + $ rect -> size -> height ) <= ( $ this -> point -> y + $ this -> size -> height ) ) ) ; }
Returns, if the current rectangle contains the defined rectangle.

@param  \Beluga\Drawing\Rectangle $rect
@return boolean
Returns if the current rectangle contains the defined rectangle .