mirror of
https://github.com/photonstorm/phaser
synced 2024-12-25 20:43:26 +00:00
10 lines
102 B
JavaScript
10 lines
102 B
JavaScript
|
|
||
|
export default function (a) {
|
||
|
|
||
|
let x = a[0];
|
||
|
let y = a[1];
|
||
|
|
||
|
return (x * x) + (y * y);
|
||
|
|
||
|
}
|