const {PI} = Math const rad1 = PI / 180 export const deg2rad = (deg: number) => deg * rad1 export const rad2deg = (rad: number) => rad / rad1