Point::+

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

The operator + function returns a new Point variable whose coordinates are calculated by adding a set value (number or another Point) to the x and y coordinate values of a point parameter. This function is constant and does not modify either of the passed parameters. 

The following expression is used to determine the result:

   Point(pt1.x + [val, pt2.x], pt1.y + [val, pt2.y])
Parameters
Parameters 
Description 
const Point<T> & pt 
A point whose x and y coordinates will be added to a fixed value (number or another Point). 
const Size<T> & sz 
A size variable containing a Width and Height component: The width variable is added to the passed Point's x coordinate value. The height variable is added to the y coordinate. 
T val 
A fixed value that will be added to both the x and y coordinate values of the previous point parameter. 
Return Value

A new Point value whose coordinates result from adding a fixed value (number or another Point) to a passed point value.