zonogon {zonohedra} | R Documentation |
zonogon construction
Description
Construct a zonogon from a numeric matrix with 2 rows.
Usage
zonogon( mat, e0=0, e1=1.e-6, ground=NULL )
polarzonogon( n, m=n, ground=NULL )
Arguments
mat |
a numeric 2xM matrix, where 2 |
e0 |
threshold for a column of |
e1 |
threshold, in a pseudo-angular sense, for non-zero column vectors to be multiples of each other, and thus members of a group of multiple (aka parallel) points in the associated matroid. It OK for a column to be a negative multiple of another. |
ground |
The ground set of the associated matroid of rank 2 -
an integer vector in strictly increasing order, or |
n |
an integer |
m |
an integer with 2 |
Details
polarzonogon()
is useful for testing.
The term polar zonogon is my own, and based on
the polar zonohedron in Chilton & Coxeter.
It it loads the matrix mat
and passes it to zonogon()
.
When m=n
the zonogon is a regular 2n-gon.
When m<n
the zonogon is a has 2m
vertices,
but is not necessarily regular.
The generators correspond to the n'th-roots of unity.
Value
zonogon()
and polarzonogon()
return a list with S3 class 'zonogon'
.
In case of error, e.g. invalid mat
,
the functions print an error message and returns NULL
.
Note
The ground set of positive integers should not be too sparse; otherwise performance may suffer.
References
B. L. Chilton and H. S. M. Coxeter. Polar Zonohedra. The American Mathematical Monthly. Vol 70. No. 9. pp. 946-951. 1963.
See Also
zonohedron()
,
zonoseg()
,