| LineDrawingBresenham Method (Int32, Int32, Int32, Int32, LineDrawingPlotFunction) |
Plot the line from (x0, y0) to (x1, y1) by using the Bresenham algorithm.
See http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm for details.
Namespace: Slash.Math.Geometry.LinesAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax public static void Bresenham(
int x0,
int y0,
int x1,
int y1,
LineDrawingPlotFunction plot
)
Public Shared Sub Bresenham (
x0 As Integer,
y0 As Integer,
x1 As Integer,
y1 As Integer,
plot As LineDrawingPlotFunction
)
public:
static void Bresenham(
int x0,
int y0,
int x1,
int y1,
LineDrawingPlotFunction^ plot
)
static member Bresenham :
x0 : int *
y0 : int *
x1 : int *
y1 : int *
plot : LineDrawingPlotFunction -> unit
Parameters
- x0
- Type: SystemInt32
The start x - y0
- Type: SystemInt32
The start y - x1
- Type: SystemInt32
The end x - y1
- Type: SystemInt32
The end y - plot
- Type: Slash.Math.Geometry.LinesLineDrawingPlotFunction
The plotting function (if this returns false, the algorithm stops early)
See Also