blockly > utils > 坐标 > difference
utils.Coordinate.difference() 方法
返回两个坐标之间的差值作为新的坐标。
Signature:
static difference(a: Coordinate | SVGPoint, b: Coordinate | SVGPoint): Coordinate;
参数
参数 | 类型 | 说明 |
---|---|---|
a | 坐标 | SVGPoint | x/y 坐标。 |
b | 坐标 | SVGPoint | x/y 坐标。 |
返回:
表示 a
和 b
之间差异的坐标。