A zonotope can be viewed as a Minkowski sum of line segments, with one endpoint at 0. Therefore, the Minkowski sum of two zonotopes (in the same dimension) is also a zonotope.
# S3 method for zonotope
minkowskisum( zono1, zono2, e0=0, e1=1.e-6, e2=1.e-10, ground=NULL, ... )# S3 method for zonotope
%+%(zono1,zono2)
minkowskisum()
returns a zonotope of the same dimension
as zono1
and zono2
.
%+%
is a more convenient binary operator that calls
minkowskisum()
, but without the flexibility of
the extra arguments.
In case of error, the function returns NULL
.
a zonotope object - a zonohedron, a zonogon, or a zonoseg
a zonotope object with the same dimension as zono1
see zonohedron()
see zonohedron()
see zonohedron()
the ground set of the returned zonotope.
If ground
is NULL
, it is set to the ground set of zono1
followed by the ground set of zono2
translated sufficiently
to not intersect that of zono1
.
not used
After verifying that zono1
and zono2
are the same dimension,
it takes the 2 matrices, cbind
s them,
and passes the new matrix to the appropriate constructor,
along with the other arguments.
There are no special optimizations.
Zonohedron - Wikipedia.
https://en.wikipedia.org/wiki/Zonohedron.
zonohedron()
,
zonogon()
,
zonoseg()