http://www.emgu.com
Calculates a part of the line segment which is entirely in the rectangle.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static bool ClipLine(
Rectangle rectangle,
ref Point pt1,
ref Point pt2
)
Public Shared Function ClipLine (
rectangle As Rectangle,
ByRef pt1 As Point,
ByRef pt2 As Point
) As Boolean
public:
static bool ClipLine(
Rectangle rectangle,
Point% pt1,
Point% pt2
)
static member ClipLine :
rectangle : Rectangle *
pt1 : Point byref *
pt2 : Point byref -> bool
Parameters
- rectangle
- Type: System.DrawingRectangle
The rectangle - pt1
- Type: System.DrawingPoint
First ending point of the line segment. It is modified by the function - pt2
- Type: System.DrawingPoint
Second ending point of the line segment. It is modified by the function.
Return Value
Type:
BooleanIt returns false if the line segment is completely outside the rectangle and true otherwise.
See Also