| 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.LinesAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax public static void Bresenham(
Vector2I start,
Vector2I end,
LineDrawingPlotFunction plot
)
Public Shared Sub Bresenham (
start As Vector2I,
end As Vector2I,
plot As LineDrawingPlotFunction
)
public:
static void Bresenham(
Vector2I start,
Vector2I end,
LineDrawingPlotFunction^ plot
)
static member Bresenham :
start : Vector2I *
end : Vector2I *
plot : LineDrawingPlotFunction -> unit
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