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
)
Public Shared Function PointOnLineSegment (
start As Vector2,
end As Vector2,
p As Vector2
) As Boolean
public:
static bool PointOnLineSegment(
Vector2 start,
Vector2 end,
Vector2 p
)
static member PointOnLineSegment :
start : Vector2 *
end : Vector2 *
p : Vector2 -> bool
STATIC METHOD PointOnLineSegment(
start AS Vector2,
end AS Vector2,
p AS Vector2
) AS LOGIC
Parameters
- start
- Type: DXFReaderNETVector2
Segment start point. - end
- Type: DXFReaderNETVector2
Segment end point. - p
- Type: DXFReaderNETVector2
A point.
Return Value
Type:
BooleanTrue if the point is inside the segment.
See Also