Glare.Box2.Distance C# (CSharp) Method

Distance() public method

Get the closest distance between this Box2 and the Vector2.
public Distance ( System.Vector2 point ) : Length
point System.Vector2
return Length
        public Length Distance( Vector2 point)
        {
            Vector2 nearest;
                NearestPointTo(ref point, out nearest);
                return point.Distance(ref nearest);
        }