mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
10 lines
113 B
JavaScript
10 lines
113 B
JavaScript
|
|
||
|
export default function (a) {
|
||
|
|
||
|
let x = a[0];
|
||
|
let y = a[1];
|
||
|
|
||
|
return Math.sqrt((x * x) + (y * y));
|
||
|
|
||
|
}
|