Click or drag to resize

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
)

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