negate method

  1. @override
Vector2 negate()
override

Implementation

@override
Vector2 negate() {
  x = -x;
  y = -y;

  return this;
}