Package toxi.geom

Interface PolygonClipper2D

All Known Implementing Classes:
ConvexPolygonClipper, SutherlandHodgemanClipper

public interface PolygonClipper2D
Defines an interface for clipping 2D polygons. Currently the only implementation for this available is SutherlandHodgemanClipper.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a clipped version of the polygon to the boundary shape set.
  • Method Details

    • 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