TernaryMeshVertices: Vertex Coordinates of Sub-Triangles in Segmented Equilateral...

Description Usage Arguments Value References Examples

Description

Given the barycentric centroid coordinates of the sub-triangles in an equilateral triangle subdivided into k^2 equilateral sub-triangles, return the barycentric vertex coordinates of each sub-triangle.

Usage

1

Arguments

C

n by 4 matrix of barycentric centroid coordinates of n=k^2 sub-triangles. Column order: id, p1, p2, p3 with id=1,...,k^2.

k

Number of rows in the segmented equilateral triangle.

Value

A numeric matrix with index, vertex id and barycentric vertex coordinates for each of the k^2 sub-triangles.

References

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

Examples

1
2
3
k = 2
C <- tricolore:::TernaryMeshCentroids(k)
tricolore:::TernaryMeshVertices(C)

tricolore documentation built on April 28, 2020, 5:10 p.m.