Stay organized with collections Save and categorize content based on your preferences.

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:

Coordinate

A Coordinate representing the difference between a and b.