Click or drag to resize

MathHelperPointOnLineSegment Method

Checks if a point is inside a line segment.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public static bool PointOnLineSegment(
	Vector2 start,
	Vector2 end,
	Vector2 p
)

Parameters

start
Type: DXFReaderNETVector2
Segment start point.
end
Type: DXFReaderNETVector2
Segment end point.
p
Type: DXFReaderNETVector2
A point.

Return Value

Type: Boolean
True if the point is inside the segment.
See Also