Question Infrastructure
There is still a hidden multiply inside of our inner loop
/**
* Sets a pixel to a given value
*/
public final boolean setPixel(int pix, int x, int y)
{
pixel[y*width+x] = pix;
return true;
}
Our next optimization of Bresenham's algorithm
eliminates even this multiply.
|