TernaryMeshCentroids: Centroid Coordinates of Sub-Triangles in Segmented...

TernaryMeshCentroidsR Documentation

Centroid Coordinates of Sub-Triangles in Segmented Equilateral Triangle

Description

Segment an equilateral triangle into k^2 equilateral sub-triangles and return the barycentric centroid coordinates of each sub-triangle.

Usage

TernaryMeshCentroids(k)

Arguments

k

Number of rows in the segmented equilateral triangle.

Value

A numeric matrix of with index and barycentric centroid coordinates of regions id=1,...,k^2.

References

S. H. Derakhshan and C. V. Deutsch (2009): A Color Scale for Ternary Mixtures.

Examples

tricolore:::TernaryMeshCentroids(1)
tricolore:::TernaryMeshCentroids(2)
tricolore:::TernaryMeshCentroids(3)


jschoeley/tricolore documentation built on Feb. 3, 2024, 4:33 a.m.