In aviation there is a navigational concept of flying blind. Correcting for wind, if you hold a certain heading at a certain airspeed for a certain time, you should wind up where you want to be without any reference to any navigational aids or the outside world.
The concept is called “Dead Reckoning” – you either reckon correctly or you’re dead.
Superfrog over 8 years ago
I reckon that’s close enough.
Brass Orchid Premium Member over 8 years ago
Yep.void bresenham_line(int x, int y, int x2, int y2, int c){ int i, steep = 0, sx, sy, dx, dy, e; dx = abs(x2 – x); sx = ((x2 – x) > 0) ? 1 : -1; dy = abs(y2 – y); sy = ((y2 – y) > 0) ? 1 : -1; if(dy > dx) { steep = 1; x ^= y; /* swap x and y / y ^= x; x ^= y; dx ^= dy; / swap dx and dy / dy ^= dx; dx ^= dy; sx ^= sy; / swap sx and sy */ sy ^= sx; sx ^= sy; } e = 2 * dy – dx; for(i = 0;i < dx;i++) { if(steep) plotdot(y, x, c); else plotdot(x, y, c); while(e >= 0) { y += sy; e -= 2 * dx; } x += sx; e += 2 * dy; } plotdot(x2, y2, c);}
Farside99 over 8 years ago
Dag nabbit! I was sure there’s gotta be more to it than that! It just seems like it’s unfinished. It’s just not right!
whiteheron over 8 years ago
I see the problem they are having….They didn’t round up.
Olddog1 over 8 years ago
BrassOrchid:That’s what I was going to say.
Egrayjames over 8 years ago
I can’t tell if it’s Phi or Pi……I reckon they’ll figure it out.
MS72 over 8 years ago
lines are infinite, rays have one end, and line segments have two ends
dflak over 8 years ago
In aviation there is a navigational concept of flying blind. Correcting for wind, if you hold a certain heading at a certain airspeed for a certain time, you should wind up where you want to be without any reference to any navigational aids or the outside world.
The concept is called “Dead Reckoning” – you either reckon correctly or you’re dead.
Zen-of-Zinfandel over 8 years ago
Is he some sort of flannel mouthed bean counter??
QuantumMechanic Premium Member over 8 years ago
Is that TeX or LaTeX???