TernaryMeshVertices: Vertex Coordinates of Sub-Triangles in Segmented Equilateral Triangle
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
TernaryMeshVertices(C)
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.