#include <grass/gis.h>
Go to the source code of this file.
Functions | |
int | G_bresenham_line (register int x0, register int y0, int x1, int y1, int(*point)()) |
Bresenham line algorithm. |
int G_bresenham_line | ( | register int | x0, | |
register int | y0, | |||
int | x1, | |||
int | y1, | |||
int(*)() | point | |||
) |
Bresenham line algorithm.
Draws a line from x1,y1 to x2,y2 using Bresenham's algorithm. A routine to plot points must be provided, as is defined as: point(x, y) plot a point at x,y This routine does not require a previous call to G_setup_plot to function correctly, and is independent of all following routines.
x0 | ||
y0 | ||
x1 | ||
y1 | ||
point |
Definition at line 21 of file bres_line.c.