Vector2.Distance 距离

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

Description描述

Returns the distance between a and b.

返回a和b之间的距离。

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

Vector2.Distance(a,b)等同于(a-b).magnitude。

Page last updated: 2011-1-4