Click or drag to resize
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.Lines
Assembly: 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
)

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