export function norm(vector: number[]): number { return Math.hypot(...vector); }