ellip_angle(int
xc,int yc, int rx,int ry,int color)
ellip2point(int
xc,int yc, float rx,float ry)
ellip_angle(int
xc,int yc, int rx,int ry,int color)
xc,yc
à»ç¹¨Ø´ center ¢Í§Ç§ÃÕ
rx,ry
à»ç¹ÃÑÈÁÕ·Ò§´éҹ᡹ x áÅÐ y
color ÊÕ
ÍÒÈÑÂËÅÑ¡ÒâͧÊÁ¡ÒÃǧÃÕ
x = xc
+ rx cosq
y = yc
+ ry sinq
ellip2point(int
xc,int yc, float rx,float ry)
xc,yc
à»ç¹¨Ø´ center ¢Í§Ç§ÃÕ
rx,ry à»ç¹ÃÑÈÁÕ·Ò§´éҹ᡹
x áÅÐ y
ÍÒÈÑÂÊÁ¡ÒäÇÒÁÊÑÁ¾Ñ¹¸ìÃÐËÇèÒ§¨Ø´
x , y áµèÅШشº¹Ç§ÃÕ
x2 = x1
cos D q + (rx/ry) y1 sinD q
y2 = y1
cos D q + (ry/rx) x1 sinD q