//计算两个点的角度
double CalculateAngle(Point Mar1Point, Point Mar2Point)
{
    double k = (double)(Mar2Point.y - Mar1Point.y) / (Mar2Point.x - Mar1Point.x);  //计算斜率
    double arcLength1 = atan(k);    //弧度
    double current_angle = arcLength1 * 180 / PI;  //角度
    return current_angle;
}

相关文章:

  • 2021-06-30
  • 2021-11-05
  • 2021-11-27
  • 2022-12-23
  • 2021-12-18
  • 2021-12-10
  • 2021-11-16
猜你喜欢
  • 2022-12-23
  • 2022-03-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案