toxi.geom
Interface PolygonClipper2D

All Known Implementing Classes:
SutherlandHodgemanClipper

public interface PolygonClipper2D

Defines an interface for clipping 2D polygons. Currently the only implementation for this available is SutherlandHodgemanClipper.


Method Summary
 Polygon2D clipPolygon(Polygon2D poly)
          Creates a clipped version of the polygon to the boundary shape set.
 

Method Detail

clipPolygon

Polygon2D clipPolygon(Polygon2D poly)
Creates a clipped version of the polygon to the boundary shape set.

Parameters:
poly - polygon to be clipped
Returns:
clipped poly