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
Translate a triangle and scale it in each coordinate direction Consider a triangle with vertices in 2D plane given by (0, 0), (1, 0) and (0,1) (called unit triangle). Translat
Analog Sound vs. Digital Sound Sound engineers have been debating the respective merits of digital and analog sound reproduction ever if the form of digital sound recordings.
Q. Explain about Unified Memory Architecture? UMA signifies Unified Memory Architecture. It is an architecture that reduces the cost of PC construction. In this a part of main
Introduction of 2-D and 3-D Transformations In this, the subsequent things have been discussed in detail as given below: Different geometric transformations as transla
Problems at Shared Vertices - Modeling and Rendering Shading discontinuities can arise while two adjacent polygons fail to share a vertex which lies along their common edge.
Event Driven Devices - Polling Polling: The status of all devices is periodically checked in a repetitive manner through a polling loop. While an event happens, the loop is
DV Encoder Type 1 : The video and audio streams are together interfaces by standard DV bit stream. Such format is fully supported through DirectShow which accepts this interleaved
Bezier Curves - Modeling and Rendering Bezier curves are utilized in computer graphics to turn out curves which display reasonably smooth at all scales. Such spline approximat
CRT - Cathode Ray Tube Electron gun is used to send an electron beam aimed at a particular point on the screen. Deflection system is used to make the beam strike the screen
A 2D geometric shape is rotated about a point with coordinates (1,2) by 90° in a clockwise direction. Then, the shape is scaled about the same point in the x-coordinate by 2 tim
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: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd