Click or drag to resize

MathHelperPointInSegment Method (Vector3, Vector3, Vector3)

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(
	Vector3 p,
	Vector3 start,
	Vector3 end
)
Request Example View Source

Parameters

p
Type: netDxfVector3
A point.
start
Type: netDxfVector3
Segment start point.
end
Type: netDxfVector3
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