blockly > utils > Coordinate > difference
utils.Coordinate.difference() method
Returns the difference between two coordinates as a new Coordinate.
Signature:
static difference(a: Coordinate | SVGPoint, b: Coordinate | SVGPoint): Coordinate;
Parameters
Parameter | Type | Description |
---|---|---|
a | Coordinate | SVGPoint | An x/y coordinate. |
b | Coordinate | SVGPoint | An x/y coordinate. |
Returns:
A Coordinate representing the difference between a
and b
.