multiply method

void multiply(
  1. double factor
)

Implementation

void multiply(double factor) {
  x = x * factor;
  y = y * factor;
}