الگوریتم رسم دایره با برسنهام

void midpoint_circle(const int h,const int k,const int r

}

int color=getcolor

int x=0

int y=r

int p=1-r

ادامه نوشته

الگوریتم رسم دایره

void triogonometric_circle(const int h,const int k,const int r

}

float x=0

float y=r

float angle=0

float range=m_pi_4

ادامه نوشته

الگوریتم خط بابرسنهام

void bresenham_line(const int x_1,const int y_1,const int x_2,const int y_2

}

int color=getcolor

int x1=x_1

int y1=y_1

int x2=x_2

int y2=y_2


ادامه نوشته

الگوریتم  DDA برای رسم خط

void dda_line(const int x_1,const int y_1,const int x_2,const inty_2

}

int x1=x_1

int x2=x_2

int y1=y_1

int y2=y_2


ادامه نوشته