Click or drag to resize
LineDrawingBresenham Method (Vector2I, Vector2I, LineDrawingPlotFunction)
Plot the line from the specified start to the specified end location 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(
	Vector2I start,
	Vector2I end,
	LineDrawingPlotFunction plot
)

Parameters

start
Type: Slash.Math.Algebra.VectorsVector2I
The start location.
end
Type: Slash.Math.Algebra.VectorsVector2I
The end location.
plot
Type: Slash.Math.Geometry.LinesLineDrawingPlotFunction
The plotting function (if this returns false, the algorithm stops early)
See Also