Sharpex2D.Math.Vector2.Translate C# (CSharp) Méthode

Translate() public méthode

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