Box2DX.Common.Vec2.Distance C# (CSharp) Method

Distance() public static method

public static Distance ( Vec2 a, Vec2 b ) : float
a Vec2
b Vec2
return float
        public static float Distance(Vec2 a, Vec2 b)
        {
            Vec2 c = a - b;
            return c.Length();
        }