Returns true if the set covered by polyhedra P is the same as the set covered by S and false otherwise.
tf = P.eq(S)
tf = P == S
P |
Polyhedron in any format or array of Polyhedra in H-representation. Class: Polyhedron |
S |
Polyhedron (or array of polyhedra) in the same dimension as P. Class: Polyhedron |
tf |
True if S == P and false otherwise. Class: logical Allowed values:
|
P = ExamplePoly.poly3d_sin
Polyhedron in R^2 with representations: H-rep (redundant) : Inequalities 13 | Equalities 0 V-rep : Unknown (call computeVRep() to compute) Functions : noneCreate a V-representation of the same polytope
S = Polyhedron(Polyhedron(P).computeVRep)
Polyhedron in R^2 with representations: H-rep (redundant) : Inequalities 13 | Equalities 0 V-rep (redundant) : Vertices 13 | Rays 0 Functions : noneTest equivalence:
P == S
ans = 1
P(1) = ExamplePoly.randHrep;
P(2) = ExamplePoly.randHrep('ne',1);Create a copy of this array
S = Polyhedron(Polyhedron(P))
Array of 2 polyhedra.The arrays of polyhedra should cover the same set
P == S
ans = 1
◀ | gt | project | ▶ |
© 2010-2013 Colin Neil Jones: EPF Lausanne, colin.jones@epfl.ch
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch