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

Truncate() public static method

Truncates the specified vector and removes all decimal places.
public static Truncate ( Vector2 a ) : Vector2
a Vector2 The vector.
return Vector2
        public static Vector2 Truncate(Vector2 a)
        {
            return new Vector2((int) a.X, (int) a.Y);
        }