fix: Revert negation change for Vector2 (#296)
diff --git a/lib/src/vector_math/vector2.dart b/lib/src/vector_math/vector2.dart index a304dab..1bcf299 100644 --- a/lib/src/vector_math/vector2.dart +++ b/lib/src/vector_math/vector2.dart
@@ -324,8 +324,8 @@ /// Negate. void negate() { - _v2storage[1] *= -1; - _v2storage[0] *= -1; + _v2storage[1] = -_v2storage[1]; + _v2storage[0] = -_v2storage[0]; } /// Absolute value.
diff --git a/lib/src/vector_math_64/vector2.dart b/lib/src/vector_math_64/vector2.dart index 40f4a6c..7a622f1 100644 --- a/lib/src/vector_math_64/vector2.dart +++ b/lib/src/vector_math_64/vector2.dart
@@ -335,8 +335,8 @@ /// Negate. void negate() { - _v2storage[1] *= -1; - _v2storage[0] *= -1; + _v2storage[1] = -_v2storage[1]; + _v2storage[0] = -_v2storage[0]; } /// Absolute value.