minkowskisum {zonohedra} | R Documentation |
Minkowski sum of Two zonotopes
Description
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.
Usage
## S3 method for class 'zonotope'
minkowskisum( zono1, zono2, e0=0, e1=1.e-6, e2=1.e-10, ground=NULL, ... )
## S3 method for class 'zonotope'
zono1 %+% zono2
Arguments
zono1 |
a zonotope object - a zonohedron, a zonogon, or a zonoseg |
zono2 |
a zonotope object with the same dimension as |
e0 |
see |
e1 |
see |
e2 |
see |
ground |
the ground set of the returned zonotope.
If |
... |
not used |
Details
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.
Value
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
.
References
Zonohedron - Wikipedia.
https://en.wikipedia.org/wiki/Zonohedron.
See Also
zonohedron()
,
zonogon()
,
zonoseg()