A call to the Offset function is equivalent to calling the += operator.
Parameters
Parameters
Description
const Point<T> & pt
A point whose x and y coordinates are added to the x and y coordinates of the original point respectively.
const Size<T> & sz
Size whose width and height values are used to offset the point. The width variable is added to the x coordinate value, and the height 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.
T x2
Variable whose value is added to the x coordinate of the current point.
T y2
Variable whose value is added to the y coordinate of the current point.
Return Value
A Point reference to the value whose coordinates result from the addition of a fixed value (number or another Point) to the original coordinates.