Package snap.geom

Class SegmentPathCAG

java.lang.Object
snap.geom.SegmentPathCAG

public class SegmentPathCAG extends Object
This class provides SegmentPath utility methods to do Constructive Area Geometry (CAG) operations, like add, subtract, intersect shapes.
  • Constructor Details

    • SegmentPathCAG

      public SegmentPathCAG()
  • Method Details

    • addShapes

      public static Shape addShapes(Shape aShape1, Shape aShape2)
      Returns the intersection shape of two shapes.
    • subtractShapes

      public static Shape subtractShapes(Shape aShape1, Shape aShape2)
      Returns the area of the first shape minus the overlapping area of second shape.
    • intersectShapes

      public static Shape intersectShapes(Shape aShape1, Shape aShape2)
      Returns the intersection shape of two shapes.