blockly > utils > Coordinate > magnitude
utils.Coordinate.magnitude() method
Returns the magnitude of a coordinate.
Signature:
static magnitude(a: Coordinate): number;
Parameters
Parameter | Type | Description |
---|---|---|
a | Coordinate | A Coordinate. |
Returns:
number
The distance between the origin and a
.