0% found this document useful (0 votes)
36 views13 pages

CG Line Algorithm

Computer Graphics

Uploaded by

Tanvir Anjum
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
36 views13 pages

CG Line Algorithm

Computer Graphics

Uploaded by

Tanvir Anjum
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 13
Subject Sean Converting atine Cy) OX Define by two Points: (X4, Wy (2, Ya) equation » Yz meth Y inhereent aoe Mine draw aah Ya-¥ Ay CTY cas er toe Rae pS a Foake tan ate, Xe -K, bz Y-mMx " 9 7: see oe ee RR Re rr eT a eR Se Date Subject : ‘endship Af line may have. dhnee fonmswidh nexeet Sere PO Re Sr (ase Penne, BEEP rlotec4 3 Gentle ope P | Nase 97 | a LZ Im] 24 ede Is /ym( >4. aaa as Ve. - VER bys aK aI, wasp * Sy adn op change sonra, Em eek a AY Sarr aaa (ay pax. Yine Ir y axis oe wer geo, i Bd oe rr wr AYA oer Viee vera. Friendship Subject Mz Now, ae BY 5) 2 YG) Zz 5-2 Fae be am 2- Byxg 2 t 3 4 ox + 4 xot Yea) z oe nae ee +B 238 a g & ~wA oate:| Time] Subject & Limit aHony of dineet ure of Line Eayuccto, * However, IW) ahPmoach in Jur way too wMoy, * In Pactkieulay dook out fon: athe eynakon Yeme+b neyunes dhe muh Pticodkion of m by x. ™ Rounding off che Teruting y CO ending, # Floating point Ws hande OT UEF Cult) Hime Comu ming. * Mos Round Subject whe DDA Algorithm The dightah differential analyzer (PDA) algorithm guker on inenemental approach in ponder to REE A GP Yean Conver ion. ¥ DDA TS —wroTRSs mubhiPlication on divinion IP Wit Bar ars AT * ma fou ase wa xy od oe we defendent Ari Ormsr y, VT Vg 4O Value qwo3a PIT) *# when mez4 } if dx24 dhen yY z= mt+b spa Yaaz MX 444 8 =7 Yiy4 2 M54 Ax) +B 7 Yit4z mei + max B 74 Yiad 2 (mai 40) + Om AL 2> Yird z Yi + aman Core 4) When my mesthod because euch step Invodvex ust two Hiei Didadvantager, aa anvollves Footing poi ng Ue nll Oty Boned Aceumulatony of Roun pal CvuLoR \ Carre accumulation of a = Rounding. off OPerotony and Floating Poink OPEN akiony Comumey, a dow et Subject Ba The Brest enham dine Addonuthm The brersenhom aldornithm WW another inenementel AEAN Conversion algorithm The big advantage of dh algorithm |» dhe id wes anty o\nteger caleutcciony Yur d yee “ uprer a a |, to wel 7| \ Yt yA" Kw Jine wig Ftr dnue dine. # Tloatkng Poink Wh THOM AT grine line -urter UPPET on Jower Pact Pro nm livtonce any Ot Ppp € 1 KX Pera XO Upper. “co Light UP arga ° KA 2 ak Jowet w W wou Pkeo nw ~coremattr Pa pte , @ * GTO, ga ra WP BET hen Pxr4 Caleulate IIT K Oe Vine a9 HAS WH WIT WOLF Une ox sy ay FP, 2 LAY - aK rT Aor as Y @ Sans PKKO =a Com ee Pura = PA Qay we me LY CER 4 CET Fk >0 Tara (Xara, Yaad) Pert = Pa RAY 2 ax ier te ee rr i ends OO Subjoct ° Exoampde: Draw adine Oring Bresenham Adgonithn which whould be drawn petween dhe Points (20, 40) and ( 36,18). es BUN reelceieone AX 2 Xn - xX, = Biol alor= 6 Gy nahe = acpi a QbL2 2°X(0220 &S Cae 2 bY - Qne \C-202-4 KR =P BOs #Aritine 9 6>0 WR x y 4 ome 26 oe or ATED Py peel cera A yun craalrh t2DY gay (24,13) FP arly Weer "2<0 eR (25,14) oe SRO A ore (5/15) Resse Pica on eos Ue Friendship

You might also like