linjerasterisering
Linjerasterisering, often translated as line rasterization or line drawing, is a fundamental algorithm in computer graphics used to approximate a straight line on a raster display, such as a computer monitor or pixel grid. The goal is to determine which pixels on the screen should be illuminated to create the visual appearance of a continuous line. Since displays are made of discrete pixels, a perfect representation is impossible, necessitating an approximation.
The most common and efficient algorithm for line rasterization is Bresenham's line algorithm. This algorithm works
Other line rasterization algorithms exist, but Bresenham's remains popular due to its speed and simplicity. The