operator * method

Vec2D operator *(
  1. double v
)

Implementation

Vec2D operator *(double v) {
  return Vec2D.fromValues(x * v, y * v);
}