Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
39Activity
0 of .
Results for:
No results containing your search query
P. 1
Grafika Komputer (Algoritma Bresenham)

Grafika Komputer (Algoritma Bresenham)

Ratings: (0)|Views: 2,779|Likes:
Published by Neike Merlia Elsa

More info:

Published by: Neike Merlia Elsa on May 17, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

04/05/2013

pdf

text

original

 
1.
 
Hitung lokasi 7 titik pertama yang dilewati oleh garis (25,15)-(75,50) menggunakanalgoritma Bresenham. Gambarkan hasil perhitungannya!
Jawab:
Garis (25,15)-(75,50)
Titik Pertama
e = 2*dy-dx= 2*35-50= 20dx = (x2-x1)= (75-25)= 50dy = (y2-y1)= (50-15)= 35d1 = 2*dy= 2*35= 70d2 = 2*(dy-dx)= 2*(35-50)= 2*(-15)= -30x = 25 ; y = 15Untuk titik pertama diperoleh x = 25 dan y = 15
Titik Kedua
e = 20
e>=0e = e+d2= 20+(-30)= -10x = x+1= 25+1= 26y = y+1= 15+1= 16x = 26 ; y = 16Untuk titik kedua diperoleh x = 26 dan y = 16
 
Titik Ketiga
e = -10
e<0e = e+d1= (-10)+70= 60x = x+1= 26+1= 27y = y = 16x = 27; y = 16Untuk titik ketiga diperoleh x = 27 dan y = 16
Titik Keempat
e = 60
e>=0e = e+d2= 60+(-30)= 30x = x+1= 27+1= 28y = y+1= 16+1= 17x = 28 ; y = 17Untuk titik keempat diperoleh x = 28 dan y = 17
Titik kelima
e = 30
e>=0e = e+d2= 30+(-30)= 0x = x+1= 28+1= 29y = y+1= 17+1= 18
 
x = 29 ; y = 18Untuk titik kelima diperoleh x = 29 dan y = 18
Titik Keenam
e = 0
e>=0e = e+d2= 0+(-30)= -30x = x+1= 29+1= 30y = y+1= 18+1= 19x = 30 ; y = 19Untuk titik keenam diperoleh x = 30 dan y = 19
Titik Ketujuh
 e = -30
e<0e = e+d1= (-30)+70= 40x = x+1= 30+1= 31y = y = 19x = 31; y = 19Untuk titik ketujuh diperoleh x = 40 dan y = 19

Activity (39)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Lopiga Tarigan added this note
Ok ..... Informatif
Iwan Gunawan liked this
Eko Nursahid liked this
lokakarya liked this
Melyza Miharjo liked this
ysantanankai liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->