'C언어 원그리기'에 해당되는 글 1건

  1. 2011.03.25 원그리는 알고리즘 4
#define    PI    3.14
 
POINT pt;

pt.x = /*radius*/ * cos(270 + /*degree*/ * PI / 180) + /*center*/;
pt.y = /*radius*/ * sin(270 + /*degree*/ * PI / 180) + /*center*/;

원을 순차적으로 그리는 수식 입니다.
Posted by Tommy™
,