Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Sketch Line Segment That Joining By Using Bresenham Line Algorithm
Example: Sketch line segment that joining (20, 10) and (25, 14) by using Bresenham line generation algorithm.
Solution: (x0, y0) → (20, 10) ; (x1, y1) → (25, 14)
m = (y1- y0)/(x1 - x0)
= (14- 10)/(25 - 20)
= 4/5 < 1
Like, m = (Δy)/ (Δx)
= 4/5 =› Δy = 4
→ plot point (20, 10)
pi = 2Δy - Δx
i = 1: pi = 2 * 4 - 5 = 3
Here p1 > 0 consequently x0 ← 21; y0 ← 11 now plot (21, 11)
i = 2 as p1 > 0
∴p2 = p1 + 2(Δy - Δx)
= 3 + 2 (4 - 5) = 3 - 2 = 1
p2 > 0; hence x0 ← 22; y0 ← 12 plot (22,12)
i = 3 as p2 > 0
∴p3 = p2 + 2 (Δy - Δx) = 1 + 2 (4 - 5) = - 1
p3 < 0 ∴x0 ← 23
y0 ← 12
plot (23, 12)
i = 4 as p3 < 0
∴p4 = p3 + 2Δy
= -1 + 2 * 4 = 7
∴ x0 ← 24; y0 ← 13
plot (24, 13)
i = 5 as p4 > 0
∴p5 = p4 + 2 (Δy - Δx)
= 7 + 2 (4 - 5) = 5
x0 ← 25; y0 ← 14
Plot (25, 14)
{for i = 6, x0 will be > xi so algorithm terminates
computational algorithm for simulating the behavior of different physical and mathematical systems Monte Carlo methods are an extensively utilized class of computational algor
Uncompressed / Common Audio Format There is one main uncompressed audio format: PCM. It is generally stored like a .wav on Windows. WAV is file format which is flexible and des
need help in coding
Line Clipping Algorithm - Cohen Sutherland Algorithm Line is a series of endless number of points; here no two points contain space in among them. Hence, the above said inequa
Limitations of Cohen Sutherland line clipping Algorithm The algorithm is merely applicable to rectangular windows and not to the other convex shaped window. Consequently, a
Transformation for 3-D Rotation Rotation in 3-dimensions is considerably more complicated then rotation in 2-dimensions. In 2-Dimentional, a rotation is prescribed via an angl
An object has to be rotated about an axis passing through the points (1,0 ,1), (1,3,1) . What will be the resulting rotation matrix? Solution: The axis is parallel to y axis
Question: List five different areas of applications of computer graphics Answer: Five major areas of applications of computer graphics are: i) Study of molecular structures.
Cohen Sutherland algorithm Point clipping is very simple. All you need to check is whether a point is inside the window extremes in x- and y-directions. For line clipping sev
Write a program that allows interactive manipulation of the position and orientation of a camera. Draw a teapot at the global origin 0,0,0. You can find a shaded teapot model and
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd