Click or drag to resize
LineDrawingBresenhamContainsPoint Method
Checks if the specified location lies on the bresenham line spanned by the start and end location.

Namespace: Slash.Math.Geometry.Lines
Assembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax
public static bool BresenhamContainsPoint(
	Vector2I startLocation,
	Vector2I endLocation,
	Vector2I location
)

Parameters

startLocation
Type: Slash.Math.Algebra.VectorsVector2I
Start location of bresenham line.
endLocation
Type: Slash.Math.Algebra.VectorsVector2I
End location of bresenham line.
location
Type: Slash.Math.Algebra.VectorsVector2I
Location to check.

Return Value

Type: Boolean
True if the specified location lies on the bresenham line spanned by the start and end location; otherwise, false.
See Also