Files
2020-06-15 17:37:26 +01:00

4 lines
79 B
TypeScript

function distance({x: number, y: number}) {
return Math.sqrt(x*x + y*y);
}