 | 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
Syntaxpublic static int PointInSegment(
Vector3 p,
Vector3 start,
Vector3 end
)
Request Example
View SourceParameters
- p
- Type: netDxfVector3
A point. - start
- Type: netDxfVector3
Segment start point. - end
- Type: netDxfVector3
Segment end point.
Return Value
Type:
Int32Zero 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