arc operations | R Documentation |
Perform Boolean operations on collections of arcs in the circle. Arcs are always considered to be closed, i.e. to contain their endpoints.
complementaryarcs( arcmat )
arcsintersection( arcmat1, arcmat2 )
arcsunion( arcmat1, arcmat2 )
arcssymmdiff( arcmat1, arcmat2 )
arcsdistance( arcmat1, arcmat2 )
arcmat |
an Nx2 matrix with an arc definition in each row;
so the total number of arcs is N.
The 1st number in the row is the center of the arc,
and the 2nd number is the length of the arc;
both in radians. The given arcs must be strictly disjoint. |
arcmat1 , arcmat2 |
2 matrices that define 2 collections of arcs, as in the previous argument. The number of arcs in each collection are not required to be equal. |
complementaryarcs()
returns
a matrix of the same size, which represents
the closure of the complement of the union of the given arcs,
as a subset of the circle.
The given arcs must be strictly disjoint;
if not the the function logs and error and returns NULL
.
arcsintersection()
, arcsunion()
, and arcssymmdiff()
return
the intersection, union, and symmetric difference of the 2 given arc collections,
respectively.
arcsdistance()
returns the distance between two collections of arcs.
This distance is the sum of the arc lengths of the symmetric difference.
plotarcs()
,
disjointarcs()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.