Skip to main content

Home > blockly > utils > Coordinate > distance

utils.Coordinate.distance() method

Returns the distance between two coordinates.

Signature:

static distance(a: Coordinate, b: Coordinate): number;

Parameters

ParameterTypeDescription
aCoordinateA Coordinate.
bCoordinateA Coordinate.

Returns:

number

The distance between a and b.