CohenSutherlandClippingClip Method |
Cohen–Sutherland clipping algorithm; clips the line specified by p0 to p1
against the clipping rectangle specified by clipRect.
Namespace:
Ptv.XServer.Controls.Map.Tools
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax public static bool Clip(
Rect clipRect,
ref Point p0,
ref Point p1
)
Public Shared Function Clip (
clipRect As Rect,
ByRef p0 As Point,
ByRef p1 As Point
) As Boolean
public:
static bool Clip(
Rect clipRect,
Point% p0,
Point% p1
)
static member Clip :
clipRect : Rect *
p0 : Point byref *
p1 : Point byref -> bool
Parameters
- clipRect
- Type: System.WindowsRect
Clipping rectangle. Be sure that the rectangle
satisfies the conditions left <= right and top <= bottom. - p0
- Type: System.WindowsPoint
Line start point. - p1
- Type: System.WindowsPoint
Line end point.
Return Value
Type:
Boolean Boolean value showing whether the line is visible in the rectangle (true) or not (false).
See Also