Sharpex2D.Math.Vector2.Translate C# (CSharp) Method

Translate() public method

Translates the vector.
public Translate ( Vector2 translation ) : void
translation Vector2 The translation.
return void
        public void Translate(Vector2 translation)
        {
            _x += translation.X;
            _y += translation.Y;
        }