const radsToDegs = (rad) => (rad * 180) / Math.PI;
const radsToDegs = (rad: number): number => (rad * 180) / Math.PI;