Click or drag to resize
LineDrawingBresenham Method (Single, Single, Single, Single, 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(
	float x0,
	float y0,
	float x1,
	float y1,
	LineDrawingPlotFunction plot
)

Parameters

x0
Type: SystemSingle
The start x
y0
Type: SystemSingle
The start y
x1
Type: SystemSingle
The end x
y1
Type: SystemSingle
The end y
plot
Type: Slash.Math.Geometry.LinesLineDrawingPlotFunction
The plotting function (if this returns false, the algorithm stops early)
See Also