Click or drag to resize

MathHelperPointInSegment Method (Vector2, Vector2, Vector2)

imbVeles Framework: imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Checks if a point is inside a line segment.

Namespace:  netDxf
Assembly:  netDXF.Standard (in netDXF.Standard.dll) Version: 2.1.1
Syntax
C#
public static int PointInSegment(
	Vector2 p,
	Vector2 start,
	Vector2 end
)
Request Example View Source

Parameters

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

Return Value

Type: Int32
Zero if the point is inside the segment, 1 if the point is after the end point, and -1 if the point is before the start point.
See Also