!
        \~english
        Rectangles converted to array of coordinates
        @return: an array of rect points. eg. (x1,y1,x2,y2)

        \~chinese
        矩形数据转换为矩形坐标数组
        @return: 矩形座标数组, 例如: ( x1,y1,x2,y2 )

def rectToArray(self, swapWH = False):
        """!
        \~english
        Rectangles converted to array of coordinates
        @return: an array of rect points. eg. (x1,y1,x2,y2)

        \~chinese
        矩形数据转换为矩形坐标数组
        @return: 矩形座标数组, 例如: ( x1,y1,x2,y2 )
        """
        if swapWH == False:
            return [self.x, self.y, self.x + self.width, self.y + self.height]
        else:
            return [self.x, self.y, self.x + self.height, self.y + self.width]