inline const Point<T>& operator *=(const Point<T> & pt); inline const Point<T>& operator *=(T val);
The operator *= function multiplies the x and y coordinate values of the current point with a fixed value (number or another Point).
The following expression is used to determine the result:
(pt1.x, pt1.y) = (pt1.x * [val, pt2.x], pt1.y * [val, pt2.y])
A reference to the new Point as the result of multiplication of the point.
Point pt1( -2.0, 3.0 ); Point pt2( 1.0 , 5.0 ); pt1 *= 2.0; // pt1 becomes (-4.00000, 6.00000) pt1 *= pt2; // pt1 becomes (-4.00000, 30.0000)