setScalar method

  1. @override
Vector2 setScalar(
  1. double scalar
)
override

Implementation

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

  return this;
}