AgaHackTools.Example.Shared.Math.Vector2.DistanceTo C# (CSharp) Method

DistanceTo() public method

Returns the distance from this Vector2 to the given Vector2
public DistanceTo ( Vector2 other ) : float
other Vector2
return float
        public float DistanceTo(Vector2 other)
        {
            return (this + other).Length();
        }