B(5,2)¡¢C(3,5)£¬Ïà¶ÔÖ±ÏßY=4×ö¶Ô³Æ±ä»»ºóµ½´ïA¡¯¡¢B¡¯¡¢C¡¯¡£
ÊÔ¼ÆËãA¡¯¡¢B¡¯¡¢C¡¯µÄ×ø±êÖµ¡££¨ÒªÇóÓÃÆë´Î×ø±ê½øÐб任£¬Áгö±ä»»¾ØÕó£©
8¡¢Éè´°¿Ú×óϽǵã×ø±êΪ(XW1,YW1)£¬¿íΪLW£¬¸ßΪHW£¬ÊÓÇø×óϽǵã×ø±êΪ(XV1,YV1)£¬¿íΪLV£¬¸ßΪHV£¬ÒÑÖª´°¿ÚÖÐÓÐÒ»µãA(XA,YA)£¬ÔÚÊÓÇøÖжÔÓ¦µÄ×ø±êΪA¡¯(X¡¯A,Y¡¯A)¡£ÊÔ¼ÆËãA¡¯µÄ×ø±êÖµ¡££¨ÒªÇóÓÃÆë´Î×ø±ê½øÐб任£¬Áгö±ä»»¾ØÕó£¬Áгö¼ÆËãʽ×Ó£¬²»ÒªÇó¼ÆËã½á¹û£©
A ¦Èo (XW1,YW1)
(XV1,YV1)
9¡¢ÓÃWeiler-AthertonËã·¨¶ÔÒÔÏ°¼ÇøÓò½øÐвüô£¬Çë·Ö±ð½¨Á¢Ö÷¶à±ßÐκͲüô¶à±ßÐεĶ¥µã±í£¬½øÐвüô²¢Êä³ö²Ã¼ôºó¶à±ßÐεĶ¥µãÐòÁС£
˵Ã÷£º1£©ÎªÖ÷¶à±ßÐκͲüô¶à
S3 S4 ±ßÐÎÉ趨·½Ïò
S7 S8 2£©Ò»ÏµÁн»µãÖУ¬I1I2I3ÊÇÈë
µã£¬I4Êdzöµã
C2 I2 C3 3£©½¨Á¢Á½Àཻµã±í
S6 I3 S5 4£©²Ã¼ô£¬Êä³öеĶ¥µãÐòÁУº I3S6I2C3£¬I1I4C1
Ö÷¶à±ßÐÎ S1
S2 S3 S4 S5 I3 S6 I2 S7 S8 S9 I1 I4
S9
C1
S2
I1
I4 C4 S1
˵Ã÷£ºÊµÏßΪÖ÷¶à±ßÐΣ¬ÐéÏßΪ²Ã¼ô¶à±ßÐÎ
²Ã¼ô¶à±ßÐÎ
C1 I1 C2 I2 C3 I3 C4 I4 C1
S1
10¡¢·ÖÎö±ß±êÖ¾Ëã·¨µÄʵÏÖ¹ý³Ì£¬²¢Ð´³öÆäËã·¨µÄCÓïÑÔÃèÊö¡£
11¡¢²ÉÓÃɨÃèÏßËã·¨¶Ô¶à±ßÐνøÐÐÌî³ä£¬Çëд³öEL¡¢AELµÄ½á¹¹£¬²¢·ÖÎöɨÃèÏßËã·¨µÄ²½ÖèºÍ´¦ÀíɨÃèÏߵIJ½Öè¡£
12¡¢ÈôÓÃɨÃèÏßÌî³ä·¨½«¶¥µãΪP0£¬P1£¬P2£¬P3£¬P4£¬P5£¬P6µÄ¶à±ßÐÎÌî³ä¡£Çëд³öÆä±ß·ÖÀà±íEL¼°y=8ʱµÄ»î»¯Á´±í¡£
13¡¢ÒÑÖªÒ»Ö±Ï߶ÎÆðµã£¨0£¬0£©£¬Öյ㣨-8£¬-3£©£¬ÀûÓÃBresenhamËã·¨Éú³É´ËÖ±Ï߶Σ¬Ð´³öÉú³É¹ý³ÌÖÐ×ø±êµã¼°Îó²î¦ÅµÄ±ä»¯Çé¿ö¡£²¢ÔÚÏÂÃæµÄ·½¸ñÖУ¬±ê³öÖ±ÏßÉϸ÷µã
Îó²î¼ÆË㹫ʽ£ºÎó²î³õÖµ??(x1)?2?y??x???(xi?1)??(xi)?2?y?2?x?(yi)?0 ??(x)??(x)?2?y?(yi)?0i?1i?14¡¢ÓÃɨÃèÏßÌî³ä·¨½«¶¥µãΪP0 (2£¬5)£¬ P1(2£¬10)£¬P2(9£¬6)£¬P3(16£¬11)£¬P4(18£¬4)£¬
P5(12£¬2)£¬P6(7£¬2)µÄ¶à±ßÐÎÌî³ä¡£Ð´³öÌî³ä²½Öè¡£
P3 P1
P2 P4 P0
P6 P5
15¡¢Æ½ÃæÉϸø¶¨Èý¸ö¶¥µãQi£¨i=0,1,2£©£¬ÊÔ¹¹ÔìÒ»Ìõ²åÖµÕâÈý¸ö¶¥µãµÄ¶þ´ÎBezierÇúÏß¡£ÒªÇó¼òÊö»ù±¾ÔÀí²¢»³öʾÒâͼ¡£
16¡¢¸ø¶¨¶¥µãP0P1P2P3P4P5P6¹¹³ÉµÄ¿ØÖƶà±ßÐΣ¬»æ³öÈý´ÎBÑùÌõÇúÏßµÄÐÎ״ʾÒâͼ¡£ ÒªÇ󣺼òҪ˵Ã÷×÷ͼ¹ý³Ì£¬±£Áô×÷ͼ¸¨ÖúÏߣ¬×÷³ö£¨»òÎÄ×Ö˵Ã÷£©ÇúÏßÉϸ÷ÌØÕ÷µãµÄÇÐÏßʸÁ¿¡£
»³öÒÔP0P1P2 P3¾ö¶¨µÄµØ0¶Î3´ÎÑùÌõÇúÏߣº
M1ΪP0P2µÄÖе㣬AµãλÓÚP1M1µÄ1/3´¦£¬AµãµÄÇÐʸƽÐÐÓÚP0P2£¬ÇÒµÈÓÚP0P2µÄ1/2£¬AµãµÄ¶þ½×µ¼ÊýʸÁ¿ÎªÖÐÏßʸÁ¿P1M1µÄÁ½±¶£»M2ΪP2P3µÄÖе㣬BµãλÓÚP2M2µÄ1/3´¦£¬AµãµÄÇÐʸƽÐÐÓÚP1P3£¬ÇÒµÈÓÚP1P3µÄ1/2£¬BµãµÄ¶þ½×µ¼ÊýʸÁ¿ÎªÖÐÏßʸÁ¿P2M2µÄÁ½±¶£»
ÕýÈ·±ê³öA¡¢BÁ½µã¡¢ Ö¸³öA¡¢BµãµÄÇÐʸ¡¢ Ö¸³öA¡¢BµãµÄ¶þ½×µ¼ÊýʸÁ¿
ÒÔͬÑùµÄ·½·¨»³öÆäËüÑùÌõÇúÏß¡£
16¡¢Èçͼ£¬È¡Õý·½ÐÎËĸö¶¥µãP0£¬P1£¬P2£¬P3×÷ΪÌØÕ÷¶à±ßÐζ¥µã£¬²ÉÓöþ´ÎBÑùÌõÇúÏß»æ³ö¹â»¬·â±ÕÇúÏßµÄÐÎ״ʾÒâͼ¡£²ÉÓÃÈý´ÎBÑùÌõÇúÏß»æ³ö¹â»¬·â±ÕÇúÏßµÄÐÎ״ʾÒâͼ¡£
ÒªÇ󣺼òҪ˵Ã÷×÷ͼ¹ý³Ì£¬±£Áô×÷ͼ¸¨ÖúÏߣ¬×÷³ö£¨»òÎÄ×Ö˵Ã÷£©ÇúÏßÉϸ÷ÌØÕ÷µãµÄÇÐÏßʸÁ¿¡£
17¡¢¸ø¶¨Ëĸö¶¥µãQ0£¨10£¬10£©£¬Q1£¨10£¬110£©£¬Q2£¨110£¬110£©£¬Q3£¨110£¬10£©£¬»æ³ö²åÖµ¸ÃËĸö¶¥µãµÄÈý´ÎBÑùÌõÇúÏßµÄÐÎ״ʾÒâͼ¡£
ÒªÇ󣺼òҪ˵Ã÷×÷ͼ¹ý³Ì£¬±£Áô×÷ͼ¸¨ÖúÏߣ¬×÷³ö£¨»òÎÄ×Ö˵Ã÷£©ÇúÏßÉϸ÷ÌØÕ÷µãµÄÇÐÏßʸÁ¿¡£
18£®¶ÁÏÂÃæµÄ³ÌÐò²¢ÕÒ³ö³ÌÐòÖеĴíÎó£º #include
int a=150,b;
int driver=DETECT,mode; initgraph(driver,mode,\for(b=10;b<=140;b+=10) ellipse(320,240,0,360,a-b,b); }
19£®¶ÁÏÂÃæµÄ³ÌÐò²¢Ëµ³ö³ÌÐòÖ´Ðнá¹û£º #include
int i,c,x=5,y=6;
int driver=DETECT,mode; printf(\scanf(\
initgraph(&driver,&mode,\cleardevice(); setcolor(9); for(i=c;i rectangle(x,y,x+140,y+140); x=x+70; y=y+50; setfillstyle(SOLID_FILL,i); floodfill(x,y,i); } getch(); closegraph(); } 20£®¶ÁÏÂÃæµÄ³ÌÐò²¢Ëµ³ö³ÌÐòÖ´Ðнá¹û£º #include int i,t,x=300,y=50; int driver=DETECT,mode;