Click or drag to resize

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.

Inheritance Hierarchy
SystemObject
  Ptv.XServer.Controls.Map.ToolsCohenSutherlandClipping

Namespace:  Ptv.XServer.Controls.Map.Tools
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public class CohenSutherlandClipping

The CohenSutherlandClipping type exposes the following members.

Constructors
  NameDescription
Public methodCohenSutherlandClipping
Initializes a new instance of the CohenSutherlandClipping class
Top
Methods
  NameDescription
Public methodStatic memberClip
Cohen–Sutherland clipping algorithm; clips the line specified by p0 to p1 against the clipping rectangle specified by clipRect.
Top
Extension Methods
  NameDescription
Public Extension MethodToJson
Converts an object to a JSON string representation.
(Defined by JSONWriter.)
Top
See Also