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

Round() public static method

Rounds the specified vector.
public static Round ( Vector2 vector ) : Vector2
vector Vector2 The vector.
return Vector2
        public static Vector2 Round(Vector2 vector)
        {
            vector.X = MathHelper.Round(vector.X);
            vector.Y = MathHelper.Round(vector.Y);

            return vector;
        }