vec1 += vec2(something I needed for my class) -- the only way I've been able to replicate that is with a static method:
public static Vector2 Add (Vector2 a, Vector2 b)
{
return new Vector2 (a.X + b.X, a.Y + b.Y);
}
is there a way to do this in C#?


Sign In
Create Account


Back to top









