negate method

Vector2 negate()

Returns a new vector with all components negated.

Implementation

Vector2 negate() => .vec2(-x, -y);