Scale this point by factor as if it were a vector.
Important Note: This function accepts a num as its argument only so
that you can scale Pointint factor. Because the
star operator always returns the same type of Point that originally called
it, passing in a double factor on a Point<int> causes a
runtime error in checked mode.
Source
Point<T> operator *(num /*T|int*/ factor) {
return new Point<T>(
(x * factor) as dynamic/*=T*/, (y * factor) as dynamic/*=T*/);
}