const radsToDegrees = rad => (rad * 180.0) / Math.PI;