setScalar method

Vector2 setScalar(
  1. double scalar
)

Implementation

Vector2 setScalar(double scalar) {
  x = scalar;
  y = scalar;

  return this;
}