|
Article on other languages:
|
A line drawing algorithm is a graphical algorithm for approximating a line segment on discrete graphical media. On discrete media, such as pixel-based displays and printers, line drawing requires such an approximation (in nontrivial cases). On continuous media, by contrast, no algorithm is necessary to draw a line. For example, oscilloscopes use natural phenomena to draw lines and curves. A naïve line-drawing algorithm
It is assumed here that the points have already been ordered so that x2 > x1. This algorithm works just fine when dx > = dy, but it is quite slow on a digital computer, as it requires floating-point calculations. If dx < dy, the line becomes quite sparse, and in the limiting case of dx = 0, only a single point is plotted! List of line drawing algorithmsThe following is a partial list of line drawing algorithms:
|
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License.
Mercedes Car
This site monitored by SitePinger.net