예제 #1
0
 public ExclusiveOrShape(Shape2D first, Shape2D second)
 {
     First   = first;
     Second  = second;
     Union   = new UnionShape(first, second);
     Overlap = new IntersectionShape(first, second);
 }
예제 #2
0
 public UnionShape(Shape2D first, Shape2D second)
 {
     First   = first;
     Second  = second;
     Overlap = new IntersectionShape(First, Second);
 }
예제 #3
0
 public DifferenceShape(Shape2D first, Shape2D second)
 {
     First   = first;
     Second  = second;
     Overlap = new IntersectionShape(first, second);
 }