Jump to content

Recommended Posts

Posted
how to find pixels required for generating a line from(0,0) to (10,5)

initial calculation-

x=0

y=0

Δx=x2-x1 = 10-0= 10

Δy=y2-y1, 5-0, 5→2Δy=10

m= Δy/Δx = 5/10 = 1/2

2Δy-2Δx = 10-20 = -10

first plot(0,0)

now incrementing through main loop yields next plots. now how to find next plot. i am confuse here

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.