scale method

Point scale(
  1. double factor
)

move the point my scale factor

to use in scaling shapes

Implementation

Point scale(double factor) {
  return Point(x * factor, y * factor);
}