Point::*=

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

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])
Parameters
Parameters 
Description 
const Point<T> & pt 
A passed point whose x and y coordinate values are multiplied by the current point's x and y coordinates respectively. 
T val 
A fixed value multiplied by the current point's x and y coordinate values. 
Return Value

A reference to the new Point as the result of multiplication of the point.

Examples
    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)