计算两个角所成夹角角度

    public static double calculateDegreeByTwoDegree(double a, double b){
        double abs = Math.abs(a - b);
        if(abs > 180){
            return 360 - abs;
        }
        return abs;
    }

 

posted on 2021-11-25 11:45  我是你爷爷的爷爷  阅读(307)  评论(0编辑  收藏  举报

导航