Pontryagin/Minkowski difference for union of polyhedra
U - W
U.minus(W)
U |
Union of polyhedra in the same dimension. Class: PolyUnion |
W |
Polyhedron to be summed with the union that is in the same dimension as the union. Class: Polyhedron |
P(1) = Polyhedron('V',[-5 0;-4 0;-5 5;-4 5]);
P(2) = Polyhedron('V',[-4 1;-1 1.5;-4 4;-1 2.5]);
P(3) = Polyhedron('V',[-1 0; -1 4]);
U = PolyUnion('Set',P,'bounded',true)
PolyUnion in the dimension 2 with 3 polyhedra. Properties of the union: Bounded: 1 Functions : noneCompute Minkowski difference for full-dimensional and bounded polyhedron
W = Polyhedron('lb',[-0.1, -0.2],'ub',[0.1, 0.2]);
Uw = U - W
PolyUnion in the dimension 2 with 5 polyhedra. Properties of the union: Overlaps: 0 Bounded: 1 Functions : nonePlot the new union Uw
U.plot('color','lightblue'), hold on, Uw.plot
S = Polyhedron('lb',[-0.1, 0],'ub',[0.1, 0]);
Us = U - S
PolyUnion in the dimension 2 with 5 polyhedra. Properties of the union: Overlaps: 0 Bounded: 1 FullDim: 1 Functions : nonePlot the new union Us
U.plot('color','lightgreen'), hold on, Us.plot
◀ | ge | contains | ▶ |
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch
© 2005 Mario Vasak: FER Zagreb , mario.vasak@fer.hr
© 2003-2013 Michal Kvasnica: STU Bratislava, michal.kvasnica@stuba.sk
© 2003-2005 Pascal Grieder: ETH Zurich , grieder@control.ee.ethz.ch
© 2003 Mato Baotic: ETH Zurich , baotic@control.ee.ethz.ch