blockly > utils > Coordinate > sum
utils.Coordinate.sum() メソッド
2 つの座標の合計を新しい座標として返します。
署名:
static sum(a: Coordinate | SVGPoint, b: Coordinate | SVGPoint): Coordinate;
パラメータ
パラメータ | 種類 | 説明 |
---|---|---|
a | 座標 | SVGPoint | x/y 座標。 |
b | 座標 | SVGPoint | x/y 座標。 |
戻り値:
2 つの座標の合計を表す座標。