Point::+=

Point::+=
inline const Point<T>& operator +=(const Point<T> & pt);
inline const Point<T>& operator +=(const Size<T> & sz);
inline const Point<T>& operator +=(T val);
Description

The operator += function adds a set value (number or another Point) to the x and y coordinates of the current point. 

The following expression is used to determine the result:

   (pt1.x, pt1.y) = (pt1.x + [val, pt2.x], pt1.y + [val, pt2.y])
Parameters
Parameters 
Description 
const Point<T> & pt 
A point whose x and y coordinate values are added to the x and y coordinate values of the current point respectively. 
const Size<T> & sz 
A size variable containing a Width and Height component: The width variable is added to the x coordinate value of the Point, and the height variable is added to the y coordinate value. 
T val 
A fixed value added to both the x and y coordinate values of the current point. 
Return Value

A Point reference to the current string whose coordinates result from the addition of a fixed value (number or another Point) to the original coordinates.