blockly > utils > Coordinate > distance
utils.Coordinate.distance() method
Returns the distance between two coordinates.
Signature:
static distance(a: Coordinate, b: Coordinate): number;
Parameters
Parameter | Type | Description |
---|---|---|
a | Coordinate | A Coordinate. |
b | Coordinate | A Coordinate. |
Returns:
number
The distance between a
and b
.