scale method

void scale(
  1. double factor
)

Implementation

void scale(double factor) {
  for (int i = 0; i < vertices.length; i++) {
    vertices[i] = vertices[i] * factor;
  }
}