现在的位置: 首页 > 综合 > 正文

时钟角度点计算

2018年04月15日 ⁄ 综合 ⁄ 共 185字 ⁄ 字号 评论关闭

一套奇怪、复杂的算法

  ptTemp.x = (int) (pt[i].x * cos (TWOPI * iAngle / 360) +
  pt[i].y * sin (TWOPI * iAngle / 360)) ;
  ptTemp.y = (int) (pt[i].y * cos (TWOPI * iAngle / 360) -
  pt[i].x * sin (TWOPI * iAngle / 360)) ;
  pt[i] = ptTemp ;

抱歉!评论已关闭.