Compute the affine map of the Polyhedron.
Q = P.affineMap(T)
Q = P.affineMap(T,method)
Q = affineMap(P,T,method)
P |
Polyhedron in any format. Class: Polyhedron |
T |
Transformation matrix. Class: double |
method |
Specific method to use in projection operation. Allowed methods are "vrep", "fourier", and "mplp".
For details type "help Polyhedron/projection". Class: string |
Q |
Polyhedron representing the affine map in H- or V-representation. Class: Polyhedron |
P = Polyhedron([0 0; 5 0; 5 3; 0 3]);Compute the affine map of the rectangle with the matrix [-1 0.5]
Q = P.affineMap([-1 0.5])
Polyhedron in R^1 with representations: H-rep : Unknown (call computeHRep() to compute) V-rep (redundant) : Vertices 4 | Rays 0 Functions : noneWe can see that Q is in dimension 1 while P is in dimension 2.
plot([P,Q],'LineWidth',3); axis([-6 6 -1 4]);
R = P.affineMap([-1 0.5; -2 3])
Polyhedron in R^2 with representations: H-rep : Unknown (call computeHRep() to compute) V-rep (redundant) : Vertices 4 | Rays 0 Functions : noneWe can see that Q remains in dimension 2.
plot([P,R]);
S = P.affineMap([-1 0.5; -2 3;-4 5])
Polyhedron in R^3 with representations: H-rep : Unknown (call computeHRep() to compute) V-rep (redundant) : Vertices 4 | Rays 0 Functions : noneWe can see that S is in dimension 3.
plot([P,S]);
◀ | getfacet | minvrep | ▶ |
© 2010-2013 Colin Neil Jones: EPF Lausanne, colin.jones@epfl.ch