CohenSutherlandClipLine Method

Clipping a line by the rectangle.

Definition

Namespace: BeeMobile.LineChart
Assembly: BeeMobile.LineChart.NET48 (in BeeMobile.LineChart.NET48.dll) Version: 4.8.1.10 (4.8.1.10)
C#
public static bool ClipLine(
	Rectangle rect,
	ref Point a,
	ref Point b
)

Parameters

rect  Rectangle
The rectangle by which the line should be clipped.
a  Point
The starting point of the line.
b  Point
The ending point of the line.

Return Value

Boolean
True if line was accepted.

See Also