Separate a point/polyhedron from another polyhedron.
h = P.separate(x)
h = separate(P, x)
h = P.separate(S)
h = separate(P, S)
P |
Polyhedron in any format Class: Polyhedron |
S |
Polyhedron in any format Class: Polyhedron |
x |
Column vector of length P.Dim. Class: Polyhedron |
h |
Separating hyperplane ![]() Class: double |
P = ExamplePoly.poly3d_sin;Choose a point:
x = [2;2];Separate and plot
h = P.separate(x); P.plot; hold on; pplot(x,'ro'); Polyhedron('He',h).plot('linewidth', 2);
P = ExamplePoly.poly3d_sin('d',3);
[U,s]=svd(randn(3));
S = ExamplePoly.poly3d_sin.affineMap(U(:,1:2)) + [2;2;2];Separate and plot:
h = separate(P,S);Plot the result
plot([P S]); hold on; Polyhedron('He',h).plot('alpha',0.3);
◀ | uminus | lt | ▶ |
© 2010-2013 Colin Neil Jones: EPF Lausanne, colin.jones@epfl.ch