function vectorLength(v: number[]) { const [x,y] = v; return Math.sqrt(x*x + y*y); } export { vectorLength }