angle2CosSlope static method

double angle2CosSlope(
  1. double angle
)

输入角度值,return cos斜率

Implementation

static double angle2CosSlope(double angle) {
  final radian = MathUtils.retrace(angle);
  //弧度拿到斜率
  final cosSlope = math.cos(radian);
  return cosSlope;
}