50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


icosa (version 0.10.0)

trishape: Shape distortions of the triangular faces and subfaces

Description

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.

Usage

trishape(gridObj)

# S4 method for trigrid trishape(gridObj)

# S4 method for hexagrid trishape(gridObj)

Arguments

gridObj

(trigrid, hexagrid) Object.

Value

A named numeric vector, one value for every face of the grid.

Details

The value is exactly 1 for an equilateral triangle, and becomes 0 as one of the edges approach 0.

Examples

Run this code
# NOT RUN {
g <- trigrid(3)
shape <- trishape(g)


# }

Run the code above in your browser using DataLab