js 箭头角度计算方式

  rotation = Math.atan(-(startY - endY) / (startX - endX)) +
          ((startX > endX ? 1 : -1) * Math.PI) / 2

你可能感兴趣的:(js 箭头角度计算方式)