operator * method

Vector2 operator *(
  1. double scalar
)

Implementation

Vector2 operator *(double scalar) => Vector2(x * scalar, y * scalar);