blockly >utils >座標 >規模

utils.Coordinate.magnitude() 方法

傳迴座標的規模。

Signature:

static magnitude(a: Coordinate): number;

參數

參數 類型 說明
a 座標 座標。

傳回:

數字

原點與 a 之間的距離。