GetIntersectedPolygon Method
This clips the subject polygon against the clip polygon (gets the intersection of the two polygons)
Syntax
public static List<Point> GetIntersectedPolygon( IEnumerable<Point> subjectPoly, Rect clipPoly )
Parameters
- subjectPoly
- Can be concave or convex
- clipPoly
- Must be convex
Return Value
The intersection of the two polygons (or null)
Remarks
Based on the psuedocode from: http://en.wikipedia.org/wiki/SutherlandE280%93Hodgman
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also