| LineDrawingBresenhamContainsPoint Method |
Checks if the specified location lies on the bresenham line spanned by the start and end location.
Namespace: Slash.Math.Geometry.LinesAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax public static bool BresenhamContainsPoint(
Vector2I startLocation,
Vector2I endLocation,
Vector2I location
)
Public Shared Function BresenhamContainsPoint (
startLocation As Vector2I,
endLocation As Vector2I,
location As Vector2I
) As Boolean
public:
static bool BresenhamContainsPoint(
Vector2I startLocation,
Vector2I endLocation,
Vector2I location
)
static member BresenhamContainsPoint :
startLocation : Vector2I *
endLocation : Vector2I *
location : Vector2I -> bool
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:
BooleanTrue if the specified location lies on the bresenham line spanned by the start and end location; otherwise, false.
See Also