import { piBy180 } from '@src/common/constants' ; /**
 * 角度转弧度
 */ export function degreesToRadians ( degrees ) { return degrees * piBy180 ; } /**
 * 弧度转角度
 */ export function radiansToDegrees ( radians ) { return radians / piBy180 ; } param value param range export function calcQuantity ( value , range ) { return value > 0 && value < 1 ? value * range : value ; }