function cal_angle_x($point1,$point2){ $angle=atan2(($point2[1]-$point1[1]),($point2[0]-$point1[0])); // return rad2deg($angle); return $angle*(180/pi()); }
function cal_angle_x($point1,$point2){ $angle=atan2(($point2[1]-$point1[1]),($point2[0]-$point1[0])); // return rad2deg($angle); return $angle*(180/pi()); }