| 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 public static int PointInSegment(
Vector2 p,
Vector2 start,
Vector2 end
)
Request Example
View SourceParameters
- p
- Type: netDxfVector2
A point. - start
- Type: netDxfVector2
Segment start point. - end
- Type: netDxfVector2
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