CohenSutherlandClipping Class |
Cohen-Sutherland clipping - initially taken from http://en.wikipedia.org/wiki/Cohen%E2%80%93Sutherland.
Slightly modified to incorporate the .Net data types System.Windows.Rect and System.Windows.Point.
Namespace: Ptv.XServer.Controls.Map.Tools
The CohenSutherlandClipping type exposes the following members.
| Name | Description | |
|---|---|---|
| CohenSutherlandClipping | Initializes a new instance of the CohenSutherlandClipping class |
| Name | Description | |
|---|---|---|
| Clip | Cohen–Sutherland clipping algorithm; clips the line specified by p0 to p1
against the clipping rectangle specified by clipRect. |
| Name | Description | |
|---|---|---|
| ToJson | Converts an object to a JSON string representation. (Defined by JSONWriter.) |