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

Abs() public static method

Returns the absolute values of the specified vector.
public static Abs ( Vector2 a ) : Vector2
a Vector2 The vector.
return Vector2
        public static Vector2 Abs(Vector2 a)
        {
            return new Vector2(
                MathHelper.Abs(a.X),
                MathHelper.Abs(a.Y));
        }