 | 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.LinesAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static void Bresenham(
float x0,
float y0,
float x1,
float y1,
LineDrawingPlotFunction plot
)
Public Shared Sub Bresenham (
x0 As Single,
y0 As Single,
x1 As Single,
y1 As Single,
plot As LineDrawingPlotFunction
)
public:
static void Bresenham(
float x0,
float y0,
float x1,
float y1,
LineDrawingPlotFunction^ plot
)
static member Bresenham :
x0 : float32 *
y0 : float32 *
x1 : float32 *
y1 : float32 *
plot : LineDrawingPlotFunction -> unit
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