Vector2.Distance Manual     Reference     Scripting  
Scripting > Runtime Classes > Vector2
Vector2.Distance

static function Distance (a : Vector2, b : Vector2) : float

Description

Returns the distance between a and b.

Vector2.Distance(a,b) is the same as (a-b).magnitude