trishape | R Documentation |
This function will return a value that is proportional to the irregularity of a triangonal face or subface. The ratio of the lengths of the shortest and the longest edges.
trishape(gridObj)
## S4 method for signature 'trigrid'
trishape(gridObj)
## S4 method for signature 'hexagrid'
trishape(gridObj)
gridObj |
( |
The value is exactly 1
for an equilateral triangle, and becomes 0
as one of the edges approach 0
.
A named numeric
vector, one value for every face of the grid.
g <- trigrid(3)
shape <- trishape(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.