1,一个坐标系中已知两点坐标,计算两点连线的夹度?
Math.atan((y1 - y2) / (x1 - x2)) / Math.PI * 180;
2,一个坐标系中已知两点坐标,计算两点之间的圆心角?
(Math.atan(y1 / x1) - Math.atan(y2 / x2)) / Math.PI * 180;
1,一个坐标系中已知两点坐标,计算两点连线的夹度?
Math.atan((y1 - y2) / (x1 - x2)) / Math.PI * 180;
(Math.atan(y1 / x1) - Math.atan(y2 / x2)) / Math.PI * 180;